Skip to content

Commit

Permalink
WIP: added an initial job with echo to debug the values in the enviro…
Browse files Browse the repository at this point in the history
…nment/action
  • Loading branch information
JSumulong committed Apr 12, 2024
1 parent 4721964 commit ed6e338
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/update-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update Download URL

on:
release:
types: [published, prereleased]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Echo GITHUB_EVENT_PATH
run: |
set -x
MAC_DOWNLOAD_URL=$(jq -r '.release.assets[] | select(.browser_download_url | test("Check-Ins-.*\\.(pkg|dmg)$")) | .browser_download_url' $GITHUB_EVENT_PATH)
echo "MAC_DOWNLOAD_URL=$MAC_DOWNLOAD_URL" >> $GITHUB_ENV
WIN_DOWNLOAD_URL=$(jq -r '.release.assets[] | select(.browser_download_url | test("Check-Ins-Setup-.*\\.exe$")) | .browser_download_url' $GITHUB_EVENT_PATH)
echo "WIN_DOWNLOAD_URL=$WIN_DOWNLOAD_URL" >> $GITHUB_ENV
cat $GITHUB_ENV

0 comments on commit ed6e338

Please sign in to comment.