From a93ee92f81f4790e390be8e30bbef42c1c6f4cdb Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 11 Apr 2024 01:15:59 +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 d072ab3..0279fcd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,15 +55,13 @@ jobs: DOCKER_IMAGE: itamae-plugin: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: @@ -73,12 +71,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 }}