Improve toolset for default tune canned tune generation #4871
This commit is contained in:
parent
d47feae4a8
commit
2dec5c5869
|
@ -46,6 +46,27 @@ jobs:
|
|||
working-directory: ./simulator/
|
||||
run: ./compile.sh
|
||||
|
||||
- name: Commit fresh generated default simulator tune
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub gen-default-tune Action"
|
||||
git add simulator/generated
|
||||
git status
|
||||
OUT=$(git commit -am "Auto-generated default tune" 2>&1) || echo "commit failed, finding out why"
|
||||
if echo "$OUT" | grep 'nothing to commit'; then
|
||||
echo "default tune: looks like nothing to commit"
|
||||
echo "::set-env name=NOCOMMIT::true"
|
||||
exit 0
|
||||
elif echo "$OUT" | grep 'changed'; then
|
||||
echo "default tune: looks like something has changed"
|
||||
exit 0
|
||||
else
|
||||
echo "default tune: looks like something unexpected"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Run Linux Simulator for 10 seconds
|
||||
working-directory: ./simulator/
|
||||
run: ./build/rusefi_simulator 10
|
||||
|
|
Loading…
Reference in New Issue