Add check for push to master

This commit is contained in:
David Holdeman 2023-06-17 12:10:03 -05:00 committed by rusefillc
parent 2b777571e3
commit 96d6943fd5
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ jobs:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
if [ "${{github.event_name}}" != "push" ] || [ "${{github.repository}}" != "master" ]; then
echo "::set-env name=NOCOMMIT::true"
exit 0
fi
git config --local user.email "action@github.com"
git config --local user.name "GitHub gen-default-tune Action"
git add 'simulator/generated/*xml'