Skip to content

Commit

Permalink
feat: commit1
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsons committed Aug 27, 2024
1 parent 0966f6d commit 5b548f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push-change-to-discord-webhook-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
const commitMessageHeaders = commitMessage.split('\n')[0];
console.log(commitMessageHeaders);
console.log('context: ', context)
core.exportVariable('commitMessageHeaders', commitMessageHeaders);
core.exportVariable('commitMessageHeaders', commitMessageHeaders );
- name: build-discord-webhook-payload
id: build-discord-webhook-payload
uses: actions/github-script@v7
Expand All @@ -47,7 +47,7 @@ jobs:
]
const discordWebhookPayload = {
content: '# 企鵝搶地前端 update' + '\n' + icon + ' ' + message,
username: 'GitHub Actions',
username: '阿鵝',
avatar_url: availableAvatarUrls.sort(() => Math.random() - 0.5)[0]
};
const req = new Request(process.env.DISCORD_WEBHOOK_URL, {
Expand Down

0 comments on commit 5b548f3

Please sign in to comment.