Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to act10ns/slack #123

Merged
merged 1 commit into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ jobs:
config: .github/dependabot-auto-merge.yml

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
job_name: '*auto-merge*'
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
28 changes: 10 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,13 @@ jobs:
continue-on-error: true # NOTE: secrets cannot be obtained with forked repository PR

- 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.golang) }}
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) }}

lint:
name: lint
Expand Down Expand Up @@ -110,15 +108,12 @@ jobs:
make lint

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
continue-on-error: true
with:
job_name: "*lint*"
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}

notify:
needs:
Expand All @@ -129,12 +124,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 }}
Loading