fix(build): manage refs for push events

This commit is contained in:
Arthur Meyre
2021-08-17 18:09:35 +02:00
parent 788e94bfa3
commit 6d14b4b318
2 changed files with 8 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ on:
jobs:
build:
concurrency:
group: ${{ github.head_ref }}
group: ${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-20.04
@@ -114,7 +114,7 @@ jobs:
needs: [build]
runs-on: ubuntu-20.04
if: ${{ github.event_name == 'push' && github.base_ref == 'main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- name: Download Documentation