From 2c9e7446c2ee197a9e608b9eab170e4c577bd847 Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 11 Apr 2024 01:08:11 +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 45c8dad..aa3c802 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -51,12 +51,9 @@ jobs: uses: actions/deploy-pages@main - 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 2f783bd..cd20f38 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,15 +92,13 @@ jobs: if: matrix.ruby >= '3.2' - 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: @@ -110,12 +108,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 }}