Browse Source

fix github actions, log

push-params
Evan Feenstra 4 years ago
parent
commit
c70050a858
  1. 2
      .github/workflows/release.yml
  2. 2
      .github/workflows/update.yml
  3. 1
      api/utils/tribes.ts
  4. 1
      dist/api/utils/tribes.js
  5. 2
      dist/api/utils/tribes.js.map

2
.github/workflows/release.yml

@ -17,4 +17,4 @@ jobs:
uses: joelwmale/webhook-action@749e2dcbc6735ce0c36e1dbbb660618cd7b5f91c
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
data: "{'content': '[GITHUB] New release in sphinx-relay! ${{ env.HEAD_TAG }}', 'action': 'broadcast', 'bot_id': '87B4FDD3DD71C2B0', 'bot_secret': '${{ secrets.WEBHOOK_SECRET }}', 'chat_uuid': 'XzsnzB-numfWNUcTXGkEkoMKCt4k36C2t60a-zohJTWrL--vHjia2WQ11gwbwdAtnsYTT3fyzRhH2YF7KqiOxwnGVlkd'}"
data: "{'bot_name': 'GithubBot', 'content': '[GITHUB] New release in sphinx-relay! ${{ env.HEAD_TAG }}', 'action': 'broadcast', 'bot_id': '87B4FDD3DD71C2B0', 'bot_secret': '${{ secrets.WEBHOOK_SECRET }}', 'chat_uuid': 'XzsnzB-numfWNUcTXGkEkoMKCt4k36C2t60a-zohJTWrL--vHjia2WQ11gwbwdAtnsYTT3fyzRhH2YF7KqiOxwnGVlkd'}"

2
.github/workflows/update.yml

@ -19,4 +19,4 @@ jobs:
uses: joelwmale/webhook-action@749e2dcbc6735ce0c36e1dbbb660618cd7b5f91c
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
data: "{'content': 'New push in sphinx-relay by ${{ env.COMMIT_AUTHOR }}: ${{ env.COMMIT_MSG }}', 'action': 'broadcast', 'bot_id': '87B4FDD3DD71C2B0', 'bot_secret': '${{ secrets.WEBHOOK_SECRET }}', 'chat_uuid': 'XzsnzB-numfWNUcTXGkEkoMKCt4k36C2t60a-zohJTWrL--vHjia2WQ11gwbwdAtnsYTT3fyzRhH2YF7KqiOxwnGVlkd'}"
data: "{'bot_name': 'GithubBot', 'content': 'New push in sphinx-relay by ${{ env.COMMIT_AUTHOR }}: ${{ env.COMMIT_MSG }}', 'action': 'broadcast', 'bot_id': '87B4FDD3DD71C2B0', 'bot_secret': '${{ secrets.WEBHOOK_SECRET }}', 'chat_uuid': 'XzsnzB-numfWNUcTXGkEkoMKCt4k36C2t60a-zohJTWrL--vHjia2WQ11gwbwdAtnsYTT3fyzRhH2YF7KqiOxwnGVlkd'}"

1
api/utils/tribes.ts

@ -100,6 +100,7 @@ export async function declare({ uuid, name, description, tags, img, group_key, h
}
export async function declare_bot({ uuid, name, description, tags, img, price_per_use, owner_pubkey, unlisted, deleted }) {
console.log('=> declare_bot',{ uuid, name, description, tags, img, price_per_use, owner_pubkey, unlisted, deleted })
const host = getHost()
try {
await fetch('https://' + host + '/bots', {

1
dist/api/utils/tribes.js

@ -123,6 +123,7 @@ function declare({ uuid, name, description, tags, img, group_key, host, price_pe
exports.declare = declare;
function declare_bot({ uuid, name, description, tags, img, price_per_use, owner_pubkey, unlisted, deleted }) {
return __awaiter(this, void 0, void 0, function* () {
console.log('=> declare_bot', { uuid, name, description, tags, img, price_per_use, owner_pubkey, unlisted, deleted });
const host = getHost();
try {
yield node_fetch_1.default('https://' + host + '/bots', {

2
dist/api/utils/tribes.js.map

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save