Skip to content

Commit 89789ee

Browse files
authored
chore: Update notify_release.yml (#2878)
1 parent fc5a60f commit 89789ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/notify_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- name: Run webhook curl command
2525
env:
2626
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}
27-
VERSION: $${{github.event.release.html_url}}
27+
VERSION: ${{github.event.release.html_url}}
28+
REPO_URL: ${{github.event.repository.html_url}}
29+
ACTION_NAME: ${{github.event.action}}
2830
shell: bash
29-
run: echo $VERSION | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"action":"${{github.event.action}}", "repo":"${{github.event.repository.html_url}}", "version":"{}"}'
31+
run: echo $VERSION | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"action":"$ACTION_NAME", "repo":"$REPO_URL", "version":"{}"}'

0 commit comments

Comments
 (0)