0

Use skip-duplicate-actions instead of concurrency limit

This commit is contained in:
Gabe Kangas 2022-11-23 15:04:20 -08:00 committed by GitHub
parent efeacc7750
commit 8e2fe17e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 35 additions and 25 deletions

View File

@ -1,15 +1,21 @@
name: Browser Tests
on: [push, pull_request_target]
on:
push:
paths:
- web/**
pull_request_target:
paths:
- web/**
jobs:
cypress-run:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-go@v3

View File

@ -19,11 +19,12 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- uses: actions/checkout@v3
with:
fetch-depth: 0

View File

@ -19,11 +19,11 @@ jobs:
api:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:

View File

@ -17,12 +17,13 @@ jobs:
run:
working-directory: ./web
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- name: Checkout
uses: actions/checkout@v3
with:
@ -47,11 +48,12 @@ jobs:
run:
working-directory: ./web
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- name: Checkout
uses: actions/checkout@v3
with:

View File

@ -16,12 +16,13 @@ jobs:
run:
working-directory: ./web
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: Build webapp
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
- name: Checkout
uses: actions/checkout@v3
with: