skip this since I'm not sure why it doesn't work
This commit is contained in:
parent
d0adfa975d
commit
a32f5aa4c3
|
@ -104,43 +104,43 @@ jobs:
|
|||
working-directory: ./unit_tests/
|
||||
run: ASAN_OPTIONS=detect_stack_use_after_return=1 build/rusefi_test
|
||||
|
||||
# Commit changes and catch the error that occurs if nothing has been changed (without catching other errors)
|
||||
- name: Commit fresh triggers.txt
|
||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
#
|
||||
# we have minor drama - looks like unit_tests are invoked from root folder while a more natural is to invoke those
|
||||
# from 'unit_tests' folder
|
||||
# as a work-around to leverage unit_tests/.gitignore we move those files into expected folder for now
|
||||
#
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub build-unit-tests Action"
|
||||
git status
|
||||
git remote -v
|
||||
echo See https://github.com/rusefi/rusefi/issues/2446
|
||||
git pull https://github.com/rusefi/rusefi master
|
||||
git add unit_tests/triggers.txt
|
||||
git status
|
||||
OUT=$(git commit -m "Trigger wheel definitions" unit_tests/triggers.txt 2>&1) || echo "commit failed, finding out why"
|
||||
echo "$OUT"
|
||||
if echo "$OUT" | grep -E 'nothing to commit|no changes added'; then
|
||||
echo "triggers: looks like nothing to commit"
|
||||
echo "::set-env name=NOCOMMIT::true"
|
||||
exit 0
|
||||
elif echo "$OUT" | grep 'changed'; then
|
||||
echo "::set-env name=NOCOMMIT::false"
|
||||
echo "triggers: looks like something has changed"
|
||||
exit 0
|
||||
else
|
||||
echo "triggers: looks like something unexpected"
|
||||
exit 1
|
||||
fi
|
||||
# # Commit changes and catch the error that occurs if nothing has been changed (without catching other errors)
|
||||
# - name: Commit fresh triggers.txt
|
||||
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||
# env:
|
||||
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||
# #
|
||||
# # we have minor drama - looks like unit_tests are invoked from root folder while a more natural is to invoke those
|
||||
# # from 'unit_tests' folder
|
||||
# # as a work-around to leverage unit_tests/.gitignore we move those files into expected folder for now
|
||||
# #
|
||||
# run: |
|
||||
# git config --local user.email "action@github.com"
|
||||
# git config --local user.name "GitHub build-unit-tests Action"
|
||||
# git status
|
||||
# git remote -v
|
||||
# echo See https://github.com/rusefi/rusefi/issues/2446
|
||||
# git pull https://github.com/rusefi/rusefi master
|
||||
# git add unit_tests/triggers.txt
|
||||
# git status
|
||||
# OUT=$(git commit -m "Trigger wheel definitions" unit_tests/triggers.txt 2>&1) || echo "commit failed, finding out why"
|
||||
# echo "$OUT"
|
||||
# if echo "$OUT" | grep -E 'nothing to commit|no changes added'; then
|
||||
# echo "triggers: looks like nothing to commit"
|
||||
# echo "::set-env name=NOCOMMIT::true"
|
||||
# exit 0
|
||||
# elif echo "$OUT" | grep 'changed'; then
|
||||
# echo "::set-env name=NOCOMMIT::false"
|
||||
# echo "triggers: looks like something has changed"
|
||||
# exit 0
|
||||
# else
|
||||
# echo "triggers: looks like something unexpected"
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
- name: Push fresh triggers.txt
|
||||
if: ${{env.NOCOMMIT != 'true'}}
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
branch: ${{ steps.extract_branch.outputs.branch }}
|
||||
# - name: Push fresh triggers.txt
|
||||
# if: ${{env.NOCOMMIT != 'true'}}
|
||||
# uses: ad-m/github-push-action@master
|
||||
# with:
|
||||
# github_token: ${{ github.token }}
|
||||
# branch: ${{ steps.extract_branch.outputs.branch }}
|
||||
|
|
Loading…
Reference in New Issue