Handle non-pull request runs (#42)
github.head_ref is only available in PRs, so the build failed on main
This commit is contained in:
parent
d97e31546b
commit
d5ed5bab89
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
- 'main'
|
- 'main'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.head_ref }}
|
group: '${{ github.head_ref || github.base_ref }}'
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
Loading…
Reference in New Issue
Block a user