Skip to content

Commit

Permalink
github: Added handling for the concurrency key to the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux authored and esden committed Apr 2, 2023
1 parent fa93545 commit 19694c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ name: build and upload
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches: ['main', 'feature/windows-ci']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# This controls the concurrency level for the jobs and how it's calculated
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ name: build PR
on:
# Triggers the workflow on push or pull request events but only for the main branch
pull_request:
branches: [ main ]
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# This controls the concurrency level for the jobs and how it's calculated
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand Down

0 comments on commit 19694c8

Please sign in to comment.