Skip to content

Commit

Permalink
fix(publishing): checkout master explicitly. do not try to close PR w…
Browse files Browse the repository at this point in the history
…hen no PR was matched by create-pull-request.

- not sure why actions/checkout@v2 isn't checkout master already ?
  • Loading branch information
christopherthielen committed Jul 30, 2021
1 parent 37bf5f9 commit 8c46d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/package-bump-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
run: |
git config user.name spinnakerbot
git config user.email [email protected]
git checkout master
- uses: actions/setup-node@v1
name: node - setup
Expand Down Expand Up @@ -97,7 +98,7 @@ jobs:
await github.pulls.update({ owner, repo, pull_number, state: 'closed' });
- name: Approve package bump
if: ${{ steps.bumps.outputs.bumps != '' }}
if: ${{ steps.bumps.outputs.bumps != '' && steps.createpullrequest.outputs.pull-request-number != '' }}
uses: actions/[email protected]
with:
github-token: '${{ secrets.SPINNAKERBOT_TOKEN }}'
Expand Down

0 comments on commit 8c46d75

Please sign in to comment.