Skip to content

Commit 7e41a30

Browse files
authored
fix: use composite webhook url
1 parent 3fa04ac commit 7e41a30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
- name: Run deploy code
2929
run: npm run deploy
3030
env:
31-
RESOURCES: ${{ secrets.WEBHOOK_RESOURCES }}
32-
RULES: ${{ secrets.WEBHOOK_RULES }}
33-
USEFUL_SERVERS: ${{ secrets.WEBHOOK_USEFUL_SERVERS }}
31+
RESOURCES: https://discord.com/api/webhooks/${{ secrets.WEBHOOK_RESOURCES_ID }}/${{ secrets.WEBHOOK_RESOURCES_TOKEN }}
32+
RULES: https://discord.com/api/webhooks/${{ secrets.WEBHOOK_RULES_ID }}/${{ secrets.WEBHOOK_RULES_TOKEN }}
33+
USEFUL_SERVERS: https://discord.com/api/webhooks/${{ secrets.WEBHOOK_USEFUL_SERVERS_ID }}/${{ secrets.WEBHOOK_USEFUL_SERVERS_TOKEN }}
3434
WEBHOOK_AVATAR: ${{ secrets.WEBHOOK_AVATAR }}
3535
WEBHOOK_NAME: ${{ secrets.WEBHOOK_NAME }}
3636
DEPLOY_CHANNELS: ${{ github.event.inputs.deployChannels }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ The repository requires the `WEBHOOK_AVATAR` and `WEBHOOK_NAME` repository secre
2323
1. Add the file into `./resources` (The file name should be derived from the channel the webhook will post to for added verbosity. The channel `foo-bar` becomes `FOO_BAR.md`)
2424
2. Each new paragraph (double newline character) will be posted in a new message. Try to use as few messages as possible (the limit is 2000 characters per message) to avoid rate limiting. You can add a spacer and simulate a new message with `_ _`
2525
3. Channel names and other escape sequences should have the format `%FOO_BAR%` and need to be added to the mapping `replacePatterns` in `./src/index.ts`
26-
4. Add a Webhook requirement to `./.github/workflows/deploy.yml`. The repository secret should be prefixed with `WEBHOOK_` for added verbosity. The entry for our example is `FOO_BAR: ${{ secrets.WEBHOOK_FOO_BAR }}`
26+
4. Add a Webhook requirement to `./.github/workflows/deploy.yml`. The repository secret should have the format `WEBHOOK_CHANNEL_NAME_ID` and `WEBHOOK_CHANNEL_NAME_TOKEN` for added verbosity. The entry for our example is `https://discord.com/api/webhooks/${{ secrets.WEBHOOK_FOO_BAR_ID }}/${{ secrets.WEBHOOK_FOO_BAR_TOKEN }}`

0 commit comments

Comments
 (0)