Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #46 from LWJerri/master
Browse files Browse the repository at this point in the history
Overwrite `latest.json` if already exsist
  • Loading branch information
LWJerri authored Jan 16, 2024
2 parents 0ebca0a + b23e5fe commit 1b4eaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ response=$(curl -s $GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases/$RELEASE_ID

latest_url=$(echo "$response" | jq -r '.assets[] | select(.name == "latest.json").browser_download_url')

curl -LJO $latest_url
curl -L $latest_url > latest.json

file_name=$(basename $latest_url)
file_contents=$(cat $file_name)
Expand Down

0 comments on commit 1b4eaa2

Please sign in to comment.