unification is best, custom code was wrong not to check for branch name

This commit is contained in:
rusefillc 2023-06-18 18:55:41 -04:00
parent f6def48c1d
commit 0d935fefa2
1 changed files with 1 additions and 4 deletions

View File

@ -55,13 +55,10 @@ jobs:
run: ./write_tune.sh
- name: Commit fresh generated default simulator tune
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
if [ "${{github.event_name}}" != "push" ] || [ "${{github.repository}}" != "rusefi/rusefi" ]; 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'