diff --git a/README.md b/README.md index da049670..21ac2ec4 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ By creating a new Slack app or using an existing one, this approach allows your ## Setup * [Create a Slack App][apps] for your workspace (alternatively use an existing app you have already created and installed). -* Add the [`chat.write`](https://api.slack.com/scopes/chat:write) bot scope under **OAuth & Permissions**. +* Add the [`chat:write`](https://api.slack.com/scopes/chat:write) bot scope under **OAuth & Permissions**. * Install the app to your workspace. * Copy the app's Bot Token from the **OAuth & Permissions** page and [add it as a secret in your repo settings][repo-secret] named `SLACK_BOT_TOKEN`. * Invite the bot user into the channel you wish to post messages to (`/invite @bot_user_name`). diff --git a/example-workflows/Technique_2_Slack_App/JSON_payload.yml b/example-workflows/Technique_2_Slack_App/JSON_payload.yml index 492f3825..f18bf3a1 100644 --- a/example-workflows/Technique_2_Slack_App/JSON_payload.yml +++ b/example-workflows/Technique_2_Slack_App/JSON_payload.yml @@ -31,9 +31,9 @@ jobs: "type": "button", "text": { "type": "plain_text", - "text": $values.button_text + "text": "${{ github.sha }}" }, - "url": $values.button_url + "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" } ] } @@ -42,6 +42,3 @@ jobs: } env: SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - values: | - button_text: ${{ github.sha }} - button_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}