File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 38
38
target : aarch64-apple-darwin
39
39
- os : macos-13
40
40
target : x86_64-apple-darwin
41
+ outputs :
42
+ has_secrets : ${{ steps.check_secrets.outputs.has_secrets }}
41
43
steps :
42
44
- uses : actions/checkout@v4
43
45
- uses : dtolnay/rust-toolchain@stable
@@ -56,12 +58,24 @@ jobs:
56
58
path : target/${{ matrix.target }}/maxperf/libfirewood_ffi.a
57
59
if-no-files-found : error
58
60
61
+ - name : Check if FIREWOOD_GO_GITHUB_TOKEN is set
62
+ id : check_secrets
63
+ run : |
64
+ if [ -z "${{ secrets.FIREWOOD_GO_GITHUB_TOKEN }}" ]; then
65
+ echo "FIREWOOD_GO_GITHUB_TOKEN is not set"
66
+ echo "has_secrets=false" >> "$GITHUB_OUTPUT"
67
+ else
68
+ echo "FIREWOOD_GO_GITHUB_TOKEN is set"
69
+ echo "has_secrets=true" >> "$GITHUB_OUTPUT"
70
+ fi
71
+
59
72
# Collect all the static libraries built on the previous matrix of jobs
60
73
# and add them into ffi/libs directory.
61
74
# We commit and push this as a new branch with "--force" to overwrite
62
75
# the previous static libs that will not be on our branch.
63
76
push-firewood-ffi-libs :
64
77
needs : build-firewood-ffi-libs
78
+ if : needs.build-firewood-ffi-libs.outputs.has_secrets == 'true'
65
79
runs-on : ubuntu-latest
66
80
outputs :
67
81
target_branch : ${{ steps.determine_branch.outputs.target_branch }}
You can’t perform that action at this time.
0 commit comments