Make it so schemas aren't pushed on PR

This commit is contained in:
Ben C 2022-05-25 18:37:40 -04:00
parent ba4e7308ff
commit 692b33e19c

View File

@ -2,7 +2,7 @@ name: Build
on: on:
push: push:
branches: [dev, main, schema-integration] branches: [dev, main]
paths-ignore: paths-ignore:
- "docs/**" - "docs/**"
- "*.md" - "*.md"
@ -70,7 +70,7 @@ jobs:
git commit -m "Updated Schemas" git commit -m "Updated Schemas"
- name: Push Schemas - name: Push Schemas
if: steps.changed_files.outputs.files_changed == 'true' if: ${{ (steps.changed_files.outputs.files_changed == 'true') && (github.event_name != 'pull_request') }}
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.github_token }} github_token: ${{ secrets.github_token }}