-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marcin Jarczewski
committed
Oct 22, 2024
1 parent
b174907
commit 623dc82
Showing
1 changed file
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,31 @@ jobs: | |
with: | ||
args: "Error running `deploy` job in OpenAPI CI" | ||
|
||
- name: Send Slack using Slack GHA notification | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
{ | ||
"text": "**new gha**\nPushed latest OpenAPI changes to `en` branch :rocket:", | ||
"icon_url": "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4", | ||
"username": "GitHub Actions" | ||
} | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
- name: Send Slack using Slack GHA notification | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "**new gha**\nError running `deploy` job in OpenAPI CI", | ||
"icon_url": "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4", | ||
"username": "GitHub Actions" | ||
} | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
# The deploy task actually deploys any changes to the en-staging branch | ||
push-to-en-staging: | ||
# We run this on the latest ubuntu | ||
|
@@ -190,7 +215,7 @@ jobs: | |
with: | ||
args: "Error running `deploy-staging` job in OpenAPI CI" | ||
|
||
- name: Send Slack notification | ||
- name: Send Slack using Slack GHA notification | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: | | ||
|
@@ -202,6 +227,19 @@ jobs: | |
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
- name: Send Slack using Slack GHA notification | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() }} | ||
with: | ||
payload: | | ||
{ | ||
"text": "**new gha**\nError running `deploy-staging` job in OpenAPI CI", | ||
"icon_url": "https://avatars3.githubusercontent.com/u/8659759?s=200&v=4", | ||
"username": "GitHub Actions" | ||
} | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
# Build the OpenAPI spec and validate using Codegen | ||
validate-spec: | ||
name: Validate OpenAPI spec using Codegen | ||
|