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