mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
Use concurrency group for CD to limit wasteful runs
Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
parent
b7edcbf91b
commit
bc174e3f5c
2 changed files with 6 additions and 3 deletions
6
.github/workflows/cd.yml
vendored
6
.github/workflows/cd.yml
vendored
|
@ -9,6 +9,9 @@ jobs:
|
|||
test:
|
||||
name: Build and Test
|
||||
runs-on: ubuntu-20.04-8core-sl
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-main
|
||||
cancel-in-progress: false
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
|
@ -71,6 +74,7 @@ jobs:
|
|||
|
||||
- name: Update ${{ matrix.images.environment }} Deployment
|
||||
uses: bobheadxi/deployments@v1.3.0
|
||||
if: always()
|
||||
with:
|
||||
step: finish
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -80,8 +84,8 @@ jobs:
|
|||
env_url: https://github.com/github/super-linter
|
||||
|
||||
- name: Create Issue on Failure
|
||||
if: failure()
|
||||
uses: actions/github-script@v6
|
||||
if: failure()
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -56,8 +56,7 @@ jobs:
|
|||
run: make IMAGE=${{ matrix.images.target }} test
|
||||
|
||||
- name: Upload Code Coverage Report
|
||||
uses: codacy/codacy-coverage-reporter-action@v1.1
|
||||
# Sometimes this fails when user does not have permissions to secrets
|
||||
uses: codacy/codacy-coverage-reporter-action@v1
|
||||
continue-on-error: true
|
||||
with:
|
||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue