Skip to content

Commit

Permalink
Update workflow actions and repository references
Browse files Browse the repository at this point in the history
The commit updates the Github Actions Workflow file to pull, commit, and push to the homebrew formula repository instead of the previous homebrew-deepldoc. The repository references are updated from 'koriym/deepldoc' to 'alps-asd/app-state-diagram' across
  • Loading branch information
koriym committed Jun 13, 2024
1 parent 891b6d7 commit 920d72b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
git config --local user.name "GitHub Action"
git pull origin 1.x
- name: Pull, commit, and push to homebrew-deepldoc
- name: Pull, commit, and push to homebrew fomula repository
run: |
git pull origin 1.x
git config --local user.email "[email protected]"
Expand All @@ -40,7 +40,7 @@ jobs:
run: |
echo "require 'octokit'" >> script.rb
echo "client = Octokit::Client.new(access_token: ENV['GITHUB_TOKEN'])" >> script.rb
echo "repo = 'koriym/deepldoc'" >> script.rb
echo "repo = 'alps-asd/app-state-diagram'" >> script.rb
echo "latest_release = client.latest_release(repo)" >> script.rb
echo "puts \"::set-output name=tag::#{latest_release.tag_name}\"" >> script.rb
ruby script.rb
Expand All @@ -49,7 +49,8 @@ jobs:

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

0 comments on commit 920d72b

Please sign in to comment.