Skip to content

Commit

Permalink
fix(publishing): Auto approve instead of adding "ready to merge" label
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 17, 2021
1 parent 8318ba8 commit 51f536c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/lerna-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,9 @@ jobs:
Auto-generated by `.github/workflows/lerna-release-pr.yml`
- name: Apply Merge Label
if: ${{ steps.createpullrequest.outputs.pull-request-number != '' }}
uses: actions/github-script@0.9.0
- name: Approve package bump
if: steps.purebump.outputs.ispurebump == 'true'
# pin to v2.0.0 tag by commit hash
uses: hmarr/auto-approve-action@7782c7e2bdf62b4d79bdcded8332808fd2f179cd
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ steps.createpullrequest.outputs.pull-request-number }},
labels: ['ready to merge']
});
github-token: '${{ secrets.SPINNAKERBOT_TOKEN }}'

0 comments on commit 51f536c

Please sign in to comment.