Skip to content

Commit

Permalink
fix: discord notification script
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Sep 22, 2023
1 parent c369681 commit d00398e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ jobs:
- name: Send a discord notification
if: steps.changeset.outputs.hasChangesets == 'true'
uses: actions/github-script@v6
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
with:
github-token: ${{ secrets.MY_GITHUB_TOKEN }}
script: |
fetch(${{ secrets.DISCORD_WEBHOOK_URL }}, {
fetch(process.env.DISCORD_WEBHOOK_URL, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
Expand Down

0 comments on commit d00398e

Please sign in to comment.