Skip to content

Commit

Permalink
Use base_ref in proper places
Browse files Browse the repository at this point in the history
  • Loading branch information
donhardman committed Feb 5, 2023
1 parent 945be4b commit 934c5f8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 934c5f8

Please sign in to comment.