don't push all the time

This commit is contained in:
David Holdeman 2024-03-07 20:16:13 -06:00
parent 6aa779df14
commit e9422fc9af
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 6 additions and 3 deletions

View File

@ -15,17 +15,20 @@ jobs:
with: with:
submodules: true submodules: true
- name: Set bundle upload - name: Set run variables
id: set-upload id: set-variables
run: | run: |
if [ "${{github.event_name}}" == "push" -o "${{github.event_name}}" == "schedule" -o "${{github.event_name}}" == "workflow_dispatch" ] && [ "${{github.ref}}" == "refs/heads/master" -o "${{github.ref}}" == "refs/heads/main" ]; then if [ "${{github.event_name}}" == "push" -o "${{github.event_name}}" == "schedule" -o "${{github.event_name}}" == "workflow_dispatch" ] && [ "${{github.ref}}" == "refs/heads/master" -o "${{github.ref}}" == "refs/heads/main" ]; then
echo 'upload="bundles"' >> $GITHUB_OUTPUT echo 'upload="bundles"' >> $GITHUB_OUTPUT
else
echo 'push="false"' >> $GITHUB_OUTPUT
fi fi
- uses: ./ext/rusefi/.github/workflows/custom-board-build - uses: ./ext/rusefi/.github/workflows/custom-board-build
with: with:
artifacts: bin srec hex list map elf bundle autoupdate artifacts: bin srec hex list map elf bundle autoupdate
uploads: ini ${{steps.set-upload.outputs.upload}} uploads: ini ${{steps.set-variables.outputs.upload}}
push: ${{ steps.set-variables.outputs.push }}
MY_REPO_PAT: ${{secrets.MY_REPO_PAT}} MY_REPO_PAT: ${{secrets.MY_REPO_PAT}}
RUSEFI_ONLINE_FTP_USER: ${{secrets.RUSEFI_ONLINE_FTP_USER}} RUSEFI_ONLINE_FTP_USER: ${{secrets.RUSEFI_ONLINE_FTP_USER}}
RUSEFI_ONLINE_FTP_PASS: ${{secrets.RUSEFI_ONLINE_FTP_PASS}} RUSEFI_ONLINE_FTP_PASS: ${{secrets.RUSEFI_ONLINE_FTP_PASS}}