Skip to content

Commit 44f351d

Browse files
committed
update release-caller.yml
1 parent 8d17e93 commit 44f351d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release-caller.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
secrets:
1010
GH_REPO_TOKEN:
1111
required: true
12+
1213
jobs:
1314
check-branch:
1415
runs-on: ubuntu-latest
@@ -20,10 +21,10 @@ jobs:
2021
if [[ $GITHUB_REF == *"offline-mode"* ]]; then
2122
echo "should_run=true" >> $GITHUB_OUTPUT
2223
else
23-
echo "should_run=true" >> $GITHUB_OUTPUT
24+
echo "should_run=false" >> $GITHUB_OUTPUT
2425
fi
2526
shell: bash
26-
27+
2728
call-workflow-build:
2829
needs: check-branch
2930
if: needs.check-branch.outputs.should_run == 'true'
@@ -33,5 +34,5 @@ jobs:
3334

3435
call-workflow-release:
3536
needs: [check-branch, call-workflow-build]
36-
if: needs.check-branch.outputs.should_run == 'true'
37+
if: needs.check-branch.outputs.should_run == 'true' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
3738
uses: adafruit/Adafruit_Wippersnapper_Arduino/.github/workflows/release-callee.yml@main

0 commit comments

Comments
 (0)