Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,22 @@ jobs:
envsubst < .github/formula-template.rb > tap/Formula/anythink.rb

cd tap
BRANCH="update-formula-v${VERSION}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b "${BRANCH}"
git add Formula/anythink.rb
git commit -m "Update anythink to v${VERSION}"
git push
git push -u origin "${BRANCH}"

# Create PR using GitHub API
curl -s -X POST \
-H "Authorization: token ${TAP_TOKEN}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/anythink-cloud/homebrew-tap/pulls \
-d "{
\"title\": \"Update anythink to v${VERSION}\",
\"body\": \"Automated formula update from [release v${VERSION}](https://github.com/anythink-cloud/anythink-cli/releases/tag/v${VERSION})\",
\"head\": \"${BRANCH}\",
\"base\": \"main\"
}"