Skip to content

Commit

Permalink
Upgrade slackapi/slack-github-action to v2 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjungling and TeamModerne authored Dec 13, 2024
1 parent 02eec1f commit 8591934
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-containerized-gradle-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ jobs:

- name: Send notification on error
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: "#ops-saas-deployments"
slack-message: ":boom: Unable to build an artifact for ${{ github.repository }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_MEESEEKS_BOT_TOKEN }}
method: chat.postMessage
token: ${{ secrets.SLACK_MEESEEKS_BOT_TOKEN }}
payload: |
channel: "#ops-saas-deployments"
text: ":boom: Unable to build an artifact for ${{ github.repository }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Create release
if: ${{ success() }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/repository-backup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
args: --overwrite --remove
- name: Send notification on error
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: ${{ inputs.slack_channel }}
slack-message: ":boom: Unable to backup ${{ github.repository }} to S3"
env:
SLACK_BOT_TOKEN: ${{ secrets.slack_bot_token }}
method: chat.postMessage
token: ${{ secrets.slack_bot_token }}
payload: |
channel: "${{ inputs.slack_channel }}"
text: ":boom: Unable to backup ${{ github.repository }} to S3"

0 comments on commit 8591934

Please sign in to comment.