Skip to content

Commit 46a5f02

Browse files
author
biologist79
committed
Restrict Github action's fw deploy to master and dev
1 parent 8c25f1f commit 46a5f02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/firmware-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ jobs:
9595
commit:
9696
runs-on: ubuntu-latest
9797
needs: test_builds
98+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' ||
99+
github.ref == 'refs/heads/dev')
98100
steps:
99101
- name: Checkout target repository
100102
uses: actions/checkout@v4
@@ -114,8 +116,6 @@ jobs:
114116
cd target-repo
115117
git config user.name "GitHub Actions"
116118
git config user.email "actions@github.com"
117-
for variant in lolin_d32_pro lolin_d32_pro_sdmmc_pe ttgo_t8 complete; do
118-
git add Firmwares/${{ github.ref_name }}/firmware-*.bin
119-
done
119+
git add Firmwares/${{ github.ref_name }}/firmware-*.bin
120120
git commit -m "Firmware built from commit biologist79/ESPuino@${{ github.sha }}"
121121
git push

0 commit comments

Comments
 (0)