Only patch code if it is a push event

This commit is contained in:
alistair3149 2020-01-06 15:24:27 -05:00
parent 6396bf2849
commit 7d21f11e56
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
2 changed files with 4 additions and 0 deletions

View file

@ -31,7 +31,9 @@ jobs:
- name: Run Composer test - name: Run Composer test
run: composer test run: composer test
# Only patch code when it is a push event
- name: Push the changes - name: Push the changes
if: github.event_name == 'push'
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |

View file

@ -29,7 +29,9 @@ jobs:
- name: Run Grunt test - name: Run Grunt test
run: npm run test run: npm run test
# Only patch code when it is a push event
- name: Push the changes - name: Push the changes
if: github.event_name == 'push'
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |