File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ jobs:
1717 with :
1818 github-token : " ${{ secrets.GITHUB_TOKEN }}"
1919
20- - name : Approve PR
20+ - name : Approve patch and minor updates
21+ if : steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
2122 run : gh pr review --approve "$PR_URL"
2223 env :
2324 PR_URL : ${{ github.event.pull_request.html_url }}
2425 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2526
26- - name : Auto-merge PR
27+ - name : Auto-merge patch and minor updates
28+ if : steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor'
2729 run : gh pr merge --auto --squash "$PR_URL"
2830 env :
2931 PR_URL : ${{ github.event.pull_request.html_url }}
You can’t perform that action at this time.
0 commit comments