diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 341c2687..d8aa2da8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,6 +131,31 @@ jobs: with: args: "Error running `deploy` job in OpenAPI CI" + - name: Send Slack using Slack GHA notification + uses: slackapi/slack-github-action@v1.27.0 + 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/slack-github-action@v1.27.0 + 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/slack-github-action@v1.27.0 with: payload: | @@ -202,6 +227,19 @@ jobs: env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + - name: Send Slack using Slack GHA notification + uses: slackapi/slack-github-action@v1.27.0 + 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