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
2
2
#
3
3
# SPDX-License-Identifier: MIT
4
4
name : WipperSnapper Release Workflow
5
-
6
5
on :
7
6
release :
8
7
types : [published]
9
- branches-ignore :
10
- - offline-mode
8
+ workflow_call :
11
9
secrets :
12
10
GH_REPO_TOKEN :
13
11
required : true
14
-
15
12
jobs :
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
+
16
27
call-workflow-build :
28
+ needs : check-branch
29
+ if : needs.check-branch.outputs.should_run == 'true'
17
30
uses : adafruit/Adafruit_Wippersnapper_Arduino/.github/workflows/build-clang-doxy.yml@main
18
31
secrets :
19
32
GH_REPO_TOKEN : ${{ secrets.GH_REPO_TOKEN }}
20
-
33
+
21
34
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