Skip to content

Commit

Permalink
Merge pull request sue445#250 from sue445/migrator/20240411221417_mig…
Browse files Browse the repository at this point in the history
…rate_to_act10ns_slack

Migrate to act10ns/slack
  • Loading branch information
sue445 authored Apr 11, 2024
2 parents f806bed + 45a9fbe commit 22cd19b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ jobs:
config: .github/dependabot-auto-merge.yml

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
job_name: '*auto-merge*'
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
19 changes: 7 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ jobs:
DOCKER_IMAGE: local:latest

- 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 @@ -69,12 +67,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 22cd19b

Please sign in to comment.