From a32f5aa4c30a5b3c914a321eb85120ce2a60b603 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 22 Feb 2023 11:55:57 -0800 Subject: [PATCH] skip this since I'm not sure why it doesn't work --- .github/workflows/gen-configs.yaml | 78 +++++++++++++++--------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/gen-configs.yaml b/.github/workflows/gen-configs.yaml index bf16c7f3ba..deae2a512c 100644 --- a/.github/workflows/gen-configs.yaml +++ b/.github/workflows/gen-configs.yaml @@ -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 }}