Skip to content

Commit

Permalink
Merge pull request #44 from sue445/migrator/20240411011407_migrate_to…
Browse files Browse the repository at this point in the history
…_act10ns_slack

Migrate to act10ns/slack
  • Loading branch information
sue445 authored Apr 10, 2024
2 parents d335790 + 432e9da commit 47b75c2
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ jobs:
DOCKER_CONTAINER: container-with-service

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.image) }}
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
matrix: ${{ toJson(matrix) }}

notify:
needs:
Expand All @@ -80,12 +78,9 @@ jobs:

steps:
- name: Slack Notification (success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
job_name: '*build*'
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 47b75c2

Please sign in to comment.