[CI] Add concurrency & remove slack alert (#19237)
* Remove CI's slack report * Add concurrency to per branch * Dynamic cancel-in-progress
This commit is contained in:
parent
7d2d71de68
commit
047a68cc66
1 changed files with 4 additions and 9 deletions
13
.github/workflows/ci-cd.yml
vendored
13
.github/workflows/ci-cd.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue