From 72ea49aa1240dc7b590843617dbf5dc34f88aee2 Mon Sep 17 00:00:00 2001 From: deggja Date: Sat, 5 Oct 2024 11:42:44 +0200 Subject: [PATCH] ci: specify token and rearrange parameters Signed-off-by: deggja --- .github/workflows/homebrew.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 20f4457..fce8e0d 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -92,25 +92,14 @@ jobs: commit_author: "Netfetch Bot " commit_user_email: "bot@netfetch.com" - - name: Fetch latest state of branches - run: | - git fetch origin main:main - git fetch origin chore/homebrew-${{ env.VERSION }}:chore/homebrew-${{ env.VERSION }} - - - name: Log differences from main - run: | - echo "Changes made to the branch relative to main:" - git diff --name-status origin/main...chore/homebrew-${{ env.VERSION }} - - 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 " author: "Netfetch Bot " - commit-message: "chore: update homebrew formula for v${{ env.VERSION }}" body: "Automated update of Homebrew formula to version v${{ env.VERSION }}." - branch: chore/homebrew-${{ env.VERSION }} - add-paths: | - formula/netfetch.rb + draft: false