Skip to content

Commit

Permalink
ci: replace github for create pull request and use github cli directly
Browse files Browse the repository at this point in the history
Signed-off-by: deggja <[email protected]>
  • Loading branch information
deggja committed Oct 5, 2024
1 parent 260fea9 commit 4779c4d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ jobs:
commit_author: "Netfetch Bot <[email protected]>"
commit_user_email: "[email protected]"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore/homebrew-${{ env.VERSION }}
base: main
title: "chore: update homebrew formula for v${{ env.VERSION }}"
committer: "Netfetch Bot <[email protected]>"
author: "Netfetch Bot <[email protected]>"
body: "Automated update of Homebrew formula to version v${{ env.VERSION }}."
draft: false
- name: Create Pull Request Using GitHub CLI
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create \
--title "chore: update homebrew formula for v${{ env.VERSION }}" \
--body "This is an automated pull request. This pull request updates the Homebrew formula to version v${{ env.VERSION }} with the latest binary URLs and checksums." \
--base main \
--head chore/homebrew-${{ env.VERSION }} \
--label homebrew,automated \
--reviewer deggja \

0 comments on commit 4779c4d

Please sign in to comment.