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:
Seth Vargo 2021-11-09 12:59:19 -05:00 committed by GitHub
parent d97e31546b
commit d5ed5bab89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ on:
- 'main'
concurrency:
group: ${{ github.head_ref }}
group: '${{ github.head_ref || github.base_ref }}'
cancel-in-progress: true
jobs: