feat: configure role_id 1481923706396872775 for diff announcements
This commit is contained in:
parent
8676075290
commit
6340d0ad01
2 changed files with 5 additions and 3 deletions
1
.github/workflows/update.yml
vendored
1
.github/workflows/update.yml
vendored
|
|
@ -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' || '' }}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue