Update workflow.yml

This commit is contained in:
Simon Lecoq
2021-04-30 22:11:04 +02:00
committed by GitHub
parent 4b113e2d97
commit a68da79ef4

View File

@@ -72,7 +72,7 @@ jobs:
name: Format code name: Format code
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build, analyze ] needs: [ build, analyze ]
if: github.event_name == 'push' && github.head_ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -100,7 +100,7 @@ jobs:
name: Publish rebuilt metrics indexes name: Publish rebuilt metrics indexes
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [ build, analyze, format ] needs: [ build, analyze, format ]
if: github.event_name == 'push' && github.head_ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2