Skip to content

Commit db065f0

Browse files
authored
Merge pull request #58 from sue445/migrator/20240411011407_migrate_to_act10ns_slack
Migrate to act10ns/slack
2 parents d759c39 + cccd58e commit db065f0

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,9 @@ jobs:
5151
uses: actions/deploy-pages@main
5252

5353
- name: Slack Notification (not success)
54-
uses: lazy-actions/slatify@master
54+
uses: act10ns/slack@v2
5555
if: "! success()"
5656
continue-on-error: true
5757
with:
58-
job_name: "*pages*"
59-
type: ${{ job.status }}
60-
icon_emoji: ":octocat:"
61-
url: ${{ secrets.SLACK_WEBHOOK }}
62-
token: ${{ secrets.GITHUB_TOKEN }}
58+
status: ${{ job.status }}
59+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/test.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ jobs:
6767
continue-on-error: true
6868

6969
- name: Slack Notification (not success)
70-
uses: lazy-actions/slatify@master
70+
uses: act10ns/slack@v2
7171
if: "! success()"
7272
continue-on-error: true
7373
with:
74-
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
75-
type: ${{ job.status }}
76-
icon_emoji: ":octocat:"
77-
url: ${{ secrets.SLACK_WEBHOOK }}
78-
token: ${{ secrets.GITHUB_TOKEN }}
74+
status: ${{ job.status }}
75+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
76+
matrix: ${{ toJson(matrix) }}
7977

8078
notify:
8179
needs:
@@ -85,12 +83,9 @@ jobs:
8583

8684
steps:
8785
- name: Slack Notification (success)
88-
uses: lazy-actions/slatify@master
86+
uses: act10ns/slack@v2
8987
if: always()
9088
continue-on-error: true
9189
with:
92-
job_name: '*build*'
93-
type: ${{ job.status }}
94-
icon_emoji: ":octocat:"
95-
url: ${{ secrets.SLACK_WEBHOOK }}
96-
token: ${{ secrets.GITHUB_TOKEN }}
90+
status: ${{ job.status }}
91+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)