Skip to content

Commit

Permalink
Specify build concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Feb 1, 2024
1 parent 42df1e5 commit 307f617
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Build docs

on:
push:
branches: ["master", "docs"]
workflow_dispatch:
push:
branches: [ master ]
pull_request:
types: [opened, synchronize]
merge_group:
# Cancel builds if a new commit is pushed, except on master
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

# Gives the workflow permissions to clone the repo and create a page deployment
permissions:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
pull_request:
types: [opened, synchronize]
merge_group:
# Cancel builds if a new commit is pushed, except on master
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
qodana:
Expand Down

0 comments on commit 307f617

Please sign in to comment.