Skip to content

Commit

Permalink
Improve Slack action
Browse files Browse the repository at this point in the history
This fixes a typo in the action description, and makes the action code
independent of the repository by replacing the hard-coded
`dfinity/internet-identity` with `$GITHUB_REPOSITORY`.
  • Loading branch information
nmattia committed Aug 3, 2023
1 parent 1bc7bf6 commit 5b2394e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/slack/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Slack'
description: 'A simple action that send a slack message to a channel.'
description: 'A simple action that sends a slack message to a channel.'
inputs:
message:
description: 'The message to send. A link to the action run will be appended.'
Expand All @@ -11,7 +11,7 @@ runs:
using: "composite"
steps:
- run: |
echo '{}' | jq --arg text "$MESSAGE: https://github.com/dfinity/internet-identity/actions/runs/$GITHUB_RUN_ID" '.text = $text' | \
echo '{}' | jq --arg text "$MESSAGE: https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" '.text = $text' | \
curl -X POST -H 'Content-Type: application/json' --data @- "$WEBHOOK_URL"
shell: bash
env:
Expand Down

0 comments on commit 5b2394e

Please sign in to comment.