Skip to content

Commit

Permalink
Update check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cngege authored Nov 22, 2024
1 parent e907e24 commit 02d7c2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,18 @@ jobs:

- name: Parse json_file,Read download url
shell: pwsh
id: forjson
run: |
$jsonContent = Get-Content -Path '${{github.workspace}}\release.json' -Raw
$jsonObj = ConvertFrom-Json -InputObject $jsonContent
echo "browser_download_url=$($jsonObj.assets[4].browser_download_url)" >> $GITHUB_ENV
echo "A${{env.browser_download_url}}"
echo "browser_download_url=$($jsonObj.assets[4].browser_download_url)" >> "$GITHUB_OUTPUT"
echo "A${{ steps.forjson.outputs.browser_download_url }}"
- name: download github desktop
shell: pwsh
run: |
echo "A${{env.browser_download_url}}"
Invoke-WebRequest -Uri "${{env.browser_download_url}}" -OutFile "${{github.workspace}}\GitHubDesktop_full.zip"
echo "A${{ steps.forjson.outputs.browser_download_url }}"
Invoke-WebRequest -Uri "${{ steps.forjson.outputs.browser_download_url }}" -OutFile "${{github.workspace}}\GitHubDesktop_full.zip"
- name: unzip GitHub Desktop Full
shell: pwsh
Expand Down

0 comments on commit 02d7c2c

Please sign in to comment.