Skip to content

Commit

Permalink
ci: simplified packaging PR process
Browse files Browse the repository at this point in the history
  • Loading branch information
pozil committed Aug 3, 2023
1 parent 3b845dc commit e1bb2fc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,14 @@ jobs:
branch: 'auto/package-version-${{ steps.createPackageVersion.outputs.packageVersionId }}'
token: ${{ secrets.BOT_ACCESS_TOKEN }}

# Approve pull request
- name: 'Approve Pull Request'
uses: juliangruber/approve-pull-request-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ steps.create-pr.outputs.pull-request-number }}
# Approve and mark PR for auto merge
- name: 'Approve and mark PR for auto merge'
run: |
gh pr review --approve "$PR_NUMBER"
gh pr merge --auto --squash "$PR_NUMBER"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ steps.create-pr.outputs.pull-request-number }}

# Housekeeping
- name: 'Delete scratch org'
Expand Down

0 comments on commit e1bb2fc

Please sign in to comment.