-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try to update homebrew recipe of btmeister from CI
- Loading branch information
Showing
10 changed files
with
241 additions
and
101 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: homebrew | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- "publish_site_release_assets" | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build_and_push: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: 'tamada/homebrew-brew' | ||
|
||
- name: Git Tag name | ||
id: vars | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
tag=$(gh release view --json tagName --jq .tagName) | ||
echo "::set-output name=tag::${tag##v}" | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "action@github.com" | ||
auth_header="$(git config --local --get http.https://github.com/.extraheader)" | ||
- name: Update btmeister.rb | ||
run: | | ||
VERSION=${{ steps.vars.outputs.tag }} | ||
curl -o btmeister.tar.gz -L https://github.com/tamada/btmeister/releases/download/v${VERSION}/btmeister-${VERSION}_darwin_amd64.tar.gz | ||
sha256=$(shasum -a 256 btmeister.tar.gz) | ||
sed 's/VERSION = \".*\"/VERSION = \"${{ steps.vars.outputs.tag }}\"' Formula/btmeister.rb > a | ||
sed "s/ sha256 \".*\"/ sha256 \"${sha256}\"" a > b | ||
mv b Formula/btmeister.rb | ||
git commit -a -m "update btmeister version to ${{ steps.vars.outputs.tag }}" | ||
- name: Push branch | ||
uses: ad-m/github-push-action@master | ||
with: | ||
repository: "tamada/homebrew-brew" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: master |
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
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
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
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
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 |
---|---|---|
|
@@ -23,4 +23,3 @@ $ cargo build --release | |
|
||
Then, `cargo` build the resultant `btmeister` executable on `target/release` directory. | ||
|
||
|
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
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
Oops, something went wrong.