File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change 1- # SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2022 - 2024
1+ # SPDX-FileCopyrightText: Brent Rubell for Adafruit Industries, 2022-2025
22#
33# SPDX-License-Identifier: MIT
44name : WipperSnapper Release Workflow
5-
65on :
76 release :
87 types : [published]
9- branches-ignore :
10- - offline-mode
8+ workflow_call :
119 secrets :
1210 GH_REPO_TOKEN :
1311 required : true
14-
1512jobs :
13+ check-branch :
14+ runs-on : ubuntu-latest
15+ outputs :
16+ should_run : ${{ steps.check.outputs.should_run }}
17+ steps :
18+ - id : check
19+ run : |
20+ if [[ $GITHUB_REF == *"offline-mode"* ]]; then
21+ echo "should_run=false" >> $GITHUB_OUTPUT
22+ else
23+ echo "should_run=true" >> $GITHUB_OUTPUT
24+ fi
25+ shell : bash
26+
1627 call-workflow-build :
28+ needs : check-branch
29+ if : needs.check-branch.outputs.should_run == 'true'
1730 uses : adafruit/Adafruit_Wippersnapper_Arduino/.github/workflows/build-clang-doxy.yml@main
1831 secrets :
1932 GH_REPO_TOKEN : ${{ secrets.GH_REPO_TOKEN }}
20-
33+
2134 call-workflow-release :
22- needs : call-workflow-build
23- uses : adafruit/Adafruit_Wippersnapper_Arduino/.github/workflows/release-callee.yml@main
35+ needs : [check-branch, call-workflow-build]
36+ if : needs.check-branch.outputs.should_run == 'true'
37+ uses : adafruit/Adafruit_Wippersnapper_Arduino/.github/workflows/release-callee.yml@main
You can’t perform that action at this time.
0 commit comments