Skip to content

Commit

Permalink
chore(ci): test concurrency workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
csantiago132 committed Oct 29, 2024
1 parent c9a99f8 commit ac76040
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 12 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
push:
branches:
- main
- alpha
- beta
- canary
- pre/rc

jobs:
lint:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.deploy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.document.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.lint.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:

Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/workflow.release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
pull-requests: write
contents: write
Expand All @@ -11,14 +15,11 @@ jobs:
runs-on: ubuntu-latest
if: |
(
github.event_name == 'push' &&
(
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/alpha' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/canary' ||
github.ref == 'refs/heads/pre/rc'
)
github.ref == 'refs/heads/main' ||
github.ref == 'refs/heads/alpha' ||
github.ref == 'refs/heads/beta' ||
github.ref == 'refs/heads/canary' ||
github.ref == 'refs/heads/pre/rc'
)
steps:
- name: Checkout
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/workflow.test.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_call:

Expand Down

0 comments on commit ac76040

Please sign in to comment.