From 28d4d93a5fa3f31e9b0a9a058fc98e4d35cd9bbf Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 11 Apr 2024 00:23:31 +0900 Subject: [PATCH] Migrate to act10ns/slack --- .github/workflows/test.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e3fc39a..4b194ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,15 +56,13 @@ jobs: bundle exec rake spec - 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})', matrix.ruby) }} - 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: @@ -74,12 +72,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 }}