only:Add Config to Commit Regardless of firmware build status
This commit is contained in:
parent
764dc3e02a
commit
bf9a3492cb
|
@ -203,12 +203,37 @@ runs:
|
||||||
echo "Not a repository"
|
echo "Not a repository"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Git Config
|
||||||
|
if: ${{ inputs.push == 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git config --local user.email "action@github.com"
|
||||||
|
git config --local user.name "GitHub git update Action"
|
||||||
|
|
||||||
- name: Handle configs separately just to make github logs more readable
|
- name: Handle configs separately just to make github logs more readable
|
||||||
working-directory: ${{inputs.rusefi_dir}}/firmware
|
working-directory: ${{inputs.rusefi_dir}}/firmware
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash bin/compile.sh $BOARD_META_PATH config
|
bash bin/compile.sh $BOARD_META_PATH config
|
||||||
|
|
||||||
|
- name: Add Config to Commit Regardless of firmware build status
|
||||||
|
if: ${{ inputs.push == 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
git add ${{inputs.rusefi_dir}}/firmware/${META_OUTPUT_ROOT_FOLDER}*
|
||||||
|
OUT=$(git commit -m "Auto-generated Configs" -m "[no ci]" 2>&1) || echo "commit failed, finding out why"
|
||||||
|
if echo "$OUT" | grep 'nothing to commit'; then
|
||||||
|
echo "Configs: looks like nothing to commit"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
git status
|
||||||
|
|
||||||
|
- name: Push Configs
|
||||||
|
if: ${{ inputs.push == 'true' }}
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
|
with:
|
||||||
|
github_token: ${{env.TOKEN}}
|
||||||
|
|
||||||
- name: Building simulator separately just to make github logs more readable
|
- name: Building simulator separately just to make github logs more readable
|
||||||
working-directory: ${{inputs.rusefi_dir}}/firmware
|
working-directory: ${{inputs.rusefi_dir}}/firmware
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -249,13 +274,6 @@ runs:
|
||||||
ls ${{inputs.sim_output}}
|
ls ${{inputs.sim_output}}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Git Config
|
|
||||||
if: ${{ inputs.push == 'true' }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
git config --local user.email "action@github.com"
|
|
||||||
git config --local user.name "GitHub git update Action"
|
|
||||||
|
|
||||||
- name: Add Tune to Commit
|
- name: Add Tune to Commit
|
||||||
if: ${{ inputs.run_simulator == 'true' && inputs.push == 'true' }}
|
if: ${{ inputs.run_simulator == 'true' && inputs.push == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Reference in New Issue