From 681888189bf6bad6460d9755b6da36247650592d Mon Sep 17 00:00:00 2001 From: sue445 Date: Thu, 11 Apr 2024 00:05:37 +0900 Subject: [PATCH] Migrate to act10ns/slack --- .github/workflows/test.yml | 9 +++------ .github/workflows/test_main.yml | 30 ++++++++++++------------------ 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b68155..df670d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,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: '*notify*' - 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_main.yml b/.github/workflows/test_main.yml index 0380633..635001b 100644 --- a/.github/workflows/test_main.yml +++ b/.github/workflows/test_main.yml @@ -34,15 +34,13 @@ jobs: RUBYOPT: ${{ inputs.rubyopt }} - name: Slack Notification (not success) - uses: lazy-actions/slatify@master + uses: act10ns/slack@v2 if: "! success()" continue-on-error: true with: - job_name: ${{ format('*unit* ({0},{1})', inputs.ruby, inputs.rubyopt) }} - 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) }} integration-docker: runs-on: ubuntu-latest @@ -88,15 +86,13 @@ jobs: RUBYOPT: ${{ inputs.rubyopt }} - name: Slack Notification (not success) - uses: lazy-actions/slatify@master + uses: act10ns/slack@v2 if: "! success()" continue-on-error: true with: - job_name: ${{ format('*integration-docker* ({0},{1},{2})', inputs.ruby, inputs.rubyopt, 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) }} integration-local: runs-on: ubuntu-latest @@ -124,12 +120,10 @@ jobs: RUBYOPT: ${{ inputs.rubyopt }} - name: Slack Notification (not success) - uses: lazy-actions/slatify@master + uses: act10ns/slack@v2 if: "! success()" continue-on-error: true with: - job_name: ${{ format('*integration-local* ({0},{1})', inputs.ruby, inputs.rubyopt) }} - 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) }}