-
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.
* chore: update CI * chore: update CI print path * chore: update CI print path v2 * chore: update CI fix path for codegen * chore: update slack action v2 --------- Co-authored-by: Marcin Jarczewski <[email protected]>
- Loading branch information
1 parent
eb559aa
commit fe4cc4a
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 | ||
|