From e6d01d95b88c35419276e46260caefa2ffe56c73 Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 11 Apr 2024 01:18:19 +0900 Subject: [PATCH] Migrate to act10ns/slack --- .github/workflows/pages.yml | 9 +++------ .github/workflows/test.yml | 19 +++++++------------ 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 6a7dc825..be61e521 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -57,12 +57,9 @@ jobs: uses: actions/deploy-pages@v4 - name: Slack Notification (not success) - uses: lazy-actions/slatify@master + uses: act10ns/slack@v2 if: "! success()" continue-on-error: true with: - job_name: "*pages*" - type: ${{ job.status }} - icon_emoji: ":octocat:" - url: ${{ secrets.SLACK_WEBHOOK }} - token: ${{ secrets.GITHUB_TOKEN }} + status: ${{ job.status }} + webhook-url: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f874d495..554b6004 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,15 +59,13 @@ jobs: - run: bundle exec yard --fail-on-warning - 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.gemfile) }} - 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: @@ -77,12 +75,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 }}