Skip to content

Commit

Permalink
Merge pull request #248 from sue445/migrator/20240411222905_migrate_t…
Browse files Browse the repository at this point in the history
…o_act10ns_slack

Migrate to act10ns/slack
  • Loading branch information
sue445 authored Apr 11, 2024
2 parents ee3c09a + e399abd commit b0f6c85
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 66 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,12 @@ jobs:
path: bin/

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

gox-oracle:
name: gox-oracle
Expand Down Expand Up @@ -205,15 +202,12 @@ jobs:
path: bin/

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

release:
name: Release
Expand Down Expand Up @@ -274,12 +268,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')

- name: Slack Notification
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: always()
continue-on-error: true
with:
job_name: '*release*'
type: ${{ job.status }}
icon_emoji: ":octocat:"
url: ${{ secrets.SLACK_WEBHOOK }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
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 }}
63 changes: 21 additions & 42 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,12 @@ jobs:
MYSQL_DATABASE: plant_erd_test

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

postgresql:
name: PostgreSQL
Expand Down Expand Up @@ -139,15 +136,12 @@ jobs:
POSTGRES_DATABASE: plant_erd_test

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

oracle:
name: Oracle
Expand Down Expand Up @@ -194,15 +188,12 @@ jobs:
NLS_LANG: AMERICAN_AMERICA.UTF8

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

coverage:
name: Coverage
Expand Down Expand Up @@ -288,15 +279,12 @@ jobs:
path-to-lcov: coverage.lcov

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

lint:
name: Lint
Expand Down Expand Up @@ -329,15 +317,12 @@ jobs:
make vet
- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

integration_test:
name: integration_test
Expand Down Expand Up @@ -366,15 +351,12 @@ jobs:
make integration_test
- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
uses: act10ns/slack@v2
if: "! success()"
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 }}

notify:
needs:
Expand All @@ -389,12 +371,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 }}

0 comments on commit b0f6c85

Please sign in to comment.