Skip to content

Commit

Permalink
Update download link in GitHub Homebrew workflow
Browse files Browse the repository at this point in the history
The commit changes the download URLs in the automated workflow for Homebrew package distribution. The old urls referenced a deprecated archive download, and are now updated to use the direct download link to the latest build artifact. This guarantees that the workflow fetches the most recent available version of the app-state-diagram software.
  • Loading branch information
koriym committed Jun 14, 2024
1 parent bffde7a commit b688a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Download release tarball
run: |
wget https://github.com/alps-asd/app-state-diagram/archive/refs/tags/${{ steps.latest_release.outputs.tag }}.tar.gz
wget https://github.com/alps-asd/app-state-diagram/releases/download{{ steps.latest_release.outputs.tag }}/asd.phar
- name: Calculate SHA256
id: sha
Expand All @@ -58,7 +58,7 @@ jobs:
pwd
ls
if [ -f "./asd.rb" ]; then
ruby -pi -e "gsub(/url \".*\"/, \"url \\\"https://github.com/alps-asd/app-state-diagram/archive/refs/tags/${{ steps.latest_release.outputs.tag }}.tar.gz\\\"\")" ./asd.rb
ruby -pi -e "gsub(/url \".*\"/, \"url \\\"https://github.com/alps-asd/app-state-diagram/releases/download/${{ steps.latest_release.outputs.tag }}/asd.phar\\\"\")" ./asd.rb
ruby -pi -e "gsub(/sha256 \".*\"/, \"sha256 \\\"${{ steps.sha.outputs.sha }}\\\"\")" ./asd.rb
else
echo "asd.rb not found"
Expand Down

0 comments on commit b688a1d

Please sign in to comment.