Skip to content

Commit b6f2313

Browse files
committed
SWPROT-8953: build: ci: Allow build in forks .g/w/build-rootfs.yml
Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 80e83f9 commit b6f2313

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-rootfs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
./scripts/build-rootfs.sh docs/dist
4646
- name: Upload Release Asset
4747
id: upload-release-asset
48+
env:
49+
token-defined: ${{ secrets.GH_UNIFY_ACCESS_TOKEN != '' }}
50+
if: ${{ env.token-defined == true && startsWith(github.ref, 'refs/tags/') }}
4851
uses: softprops/action-gh-release@v2
49-
if: startsWith(github.ref, 'refs/tags/')
5052
with:
5153
files: build/dist/*
5254
# yamllint disable-line rule:line-length

0 commit comments

Comments
 (0)