diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 552e050ff96..128af2085d6 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -58,6 +58,7 @@ jobs: icons_webhook: ${{ secrets.ICONS_WEBHOOK }} bot_token: ${{ secrets.BOT_TOKEN }} channel_id: "1532999192601952266" + role_id: "1481923706396872775" working-directory: main run: | bun run src/update/index.ts ${{ (inputs.force || github.event.inputs.force == 'true') && '--force' || '' }} ${{ (inputs.quiet || github.event.inputs.quiet == 'true') && '--quiet' || '' }} diff --git a/src/update/tasks/webhook.ts b/src/update/tasks/webhook.ts index 6c2f79de053..7440f892aee 100644 --- a/src/update/tasks/webhook.ts +++ b/src/update/tasks/webhook.ts @@ -223,9 +223,10 @@ export async function webhook(diffs: Differs) { const iconsWh = process.env.icons_webhook || defaultWebhook; const codeWh = process.env.code_webhook || defaultWebhook; - const colorRole = process.env.color_role; - const iconsRole = process.env.icons_role; - const codeRole = process.env.code_role; + const defaultRole = process.env.role_id || "1481923706396872775"; + const colorRole = process.env.color_role || defaultRole; + const iconsRole = process.env.icons_role || defaultRole; + const codeRole = process.env.code_role || defaultRole; if (diffs.raw.size || diffs.semantic.size) { if (!colorWh) {