Skip to content

Commit 24ef0db

Browse files
committed
Fix env for gh
1 parent ad79237 commit 24ef0db

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3131
- name: Create release if missing
32+
env:
33+
GH_TOKEN: ${{ github.token }}
3234
run: |
3335
tag="${GITHUB_REF#refs/tags/}"
3436
if ! gh release view "$tag" >/dev/null 2>&1; then
3537
gh release create "$tag" --title "$tag"
3638
fi
3739
- name: Upload schema assets
38-
if: startsWith(github.ref, 'refs/tags/')
40+
env:
41+
GH_TOKEN: ${{ github.token }}
3942
run: |
4043
tag="${GITHUB_REF#refs/tags/}"
4144
gh release upload "$tag" schema.json meta.json --clobber

0 commit comments

Comments
 (0)