From 5b2394ebdd9337f61ce9e1cfa68fe639f4c12512 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Thu, 3 Aug 2023 10:31:01 +0200 Subject: [PATCH] Improve Slack action 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`. --- .github/actions/slack/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/slack/action.yml b/.github/actions/slack/action.yml index 9b9bfb75fc..8d9f48dba8 100644 --- a/.github/actions/slack/action.yml +++ b/.github/actions/slack/action.yml @@ -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.' @@ -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: