unification is best, custom code was wrong not to check for branch name
This commit is contained in:
parent
f6def48c1d
commit
0d935fefa2
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue