Skip to content

Commit

Permalink
Migrate to act10ns/slack
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Apr 10, 2024
1 parent 151185c commit 6818881
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
30 changes: 12 additions & 18 deletions .github/workflows/test_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) }}

0 comments on commit 6818881

Please sign in to comment.