Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
acocalypso committed Apr 8, 2024
1 parent fc9c034 commit 0f79893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ jobs:
"url": "https://github.com/${{ github.repository }}/releases/download/'"$tag"'/'"$app_name"'-x86_64-setup.nsis.zip"
}
}
}' > updater.json
}' > update.json
- name: Update Gist
if: matrix.platform == 'ubuntu-20.04'
run: |
# Extract content of updater.json
UPDATER_JSON_CONTENT=$(cat updater.json)
UPDATER_JSON_CONTENT=$(cat update.json)
# Get Gist ID from secrets
GIST_ID="${{ secrets.GIST_ID }}"
# Make a PATCH request to update the gist
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d "{\"files\":{\"updater.json\":{\"content\":\"$UPDATER_JSON_CONTENT\"}}}" "https://api.github.com/gists/$GIST_ID"
curl -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d "{\"files\":{\"update.json\":{\"content\":\"$UPDATER_JSON_CONTENT\"}}}" "https://api.github.com/gists/$GIST_ID"

0 comments on commit 0f79893

Please sign in to comment.