From 047a68cc66f519f4dbe7b31ba22862a125f91475 Mon Sep 17 00:00:00 2001 From: Mac Siri Date: Mon, 20 Mar 2023 08:59:14 -0400 Subject: [PATCH] [CI] Add concurrency & remove slack alert (#19237) * Remove CI's slack report * Add concurrency to per branch * Dynamic cancel-in-progress --- .github/workflows/ci-cd.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 758537ec5..313ddf3e0 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -7,6 +7,10 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'main' }} + env: COVERAGE: true RAILS_ENV: test @@ -391,15 +395,6 @@ jobs: with: jobs: ${{ toJSON(needs) }} - - name: Report failure to Slack channel - uses: slackapi/slack-github-action@v1 - with: - payload: | - { "link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - if: failure() && github.ref == 'refs/heads/main' - deploy: if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} runs-on: ubuntu-latest