From 934c5f885947b30f4a130d7e32e71ec2d73adfa7 Mon Sep 17 00:00:00 2001 From: Don Hardman Date: Sun, 5 Feb 2023 02:17:52 +0000 Subject: [PATCH] Use base_ref in proper places --- .github/workflows/publish.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1304758..ce626e5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,17 +18,13 @@ jobs: env: HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }} PULL_REQUEST: ${{ github.event.pull_request.number }} - run: brew pr-pull --debug --no-autosquash --tap=$GITHUB_REPOSITORY $PULL_REQUEST - - - id: vars - run: | - echo "::set-output name=target_branch::$(echo ${{ github.base_ref}} | cut -d/ -f3)" + run: brew pr-pull --debug --no-autosquash --tap=$GITHUB_REPOSITORY $PULL_REQUEST ${{ github.base_ref }} - name: Push commits uses: Homebrew/actions/git-try-push@master with: token: ${{ github.token }} - branch: ${{ steps.vars.outputs.target_branch }} + branch: ${{ github.base_ref }} - name: Delete branch if: github.event.pull_request.head.repo.fork == false