Skip to content

Commit

Permalink
Merge pull request #101 from containerish/github-actions-resource-was…
Browse files Browse the repository at this point in the history
…te-fix

Chore: Adds cancel-in-progress on consecutive push
  • Loading branch information
guacamole authored Feb 23, 2022
2 parents 00393c5 + cae8ee3 commit 2e49b23
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: golangci-lint
on:
pull_request:

concurrency:
group: linter-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
golangci:
name: lint
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/oci-dist-spec-content-discovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: OCI Distribution Spec
on:
pull_request:

concurrency:
group: content-discovery-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
content-discovery:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/oci-dist-spec-content-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: OCI Distribution Spec
on:
pull_request:

concurrency:
group: content-management-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
content-management:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/oci-dist-spec-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: OCI Distribution Spec
on:
pull_request:

concurrency:
group: pull-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
pull:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/oci-dist-spec-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: OCI Distribution Spec
on:
pull_request:

concurrency:
group: push-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
push:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2e49b23

Please sign in to comment.