-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflow actions and repository references
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
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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" | ||
|