mirror of
https://github.com/h3pdesign/Neon-Vision-Editor
synced 2026-04-21 13:27:16 +00:00
Fix workflow token env
This commit is contained in:
parent
ceee79388a
commit
01a3bdc19d
1 changed files with 2 additions and 1 deletions
|
|
@ -19,12 +19,13 @@ jobs:
|
|||
|
||||
- name: Update cask
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
APP_REPO: h3pdesign/Neon-Vision-Editor
|
||||
ASSET_NAME: Neon.Vision.Editor.app.zip
|
||||
CASK_PATH: Casks/neon-vision-editor.rb
|
||||
run: |
|
||||
set -euo pipefail
|
||||
release_json="$(curl -fsSL -H "Authorization: Bearer $GITHUB_TOKEN" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${APP_REPO}/releases/latest")"
|
||||
release_json="$(curl -fsSL -H "Authorization: Bearer ${GITHUB_TOKEN}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/repos/${APP_REPO}/releases/latest")"
|
||||
tag="$(echo "$release_json" | jq -r '.tag_name')"
|
||||
version="${tag#v}"
|
||||
asset_url="$(echo "$release_json" | jq -r --arg name "$ASSET_NAME" '.assets[] | select(.name==$name) | .browser_download_url')"
|
||||
|
|
|
|||
Loading…
Reference in a new issue