File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,16 @@ jobs:
2727 PR_URL : ${{ github.event.pull_request.html_url }}
2828 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2929
30- - name : Enable auto-merge for patch and minor updates
30+ - name : Enable auto-merge (always for GitHub Actions; patch/ minor otherwise)
3131 if : |
32- steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
33- steps.metadata.outputs.update-type == 'version-update:semver-minor'
32+ steps.metadata.outputs.package-ecosystem == 'github-actions' ||
33+ (
34+ steps.metadata.outputs.package-ecosystem != 'github-actions' &&
35+ (
36+ steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
37+ steps.metadata.outputs.update-type == 'version-update:semver-minor'
38+ )
39+ )
3440 run : gh pr merge --auto --squash "$PR_URL"
3541 env :
3642 PR_URL : ${{ github.event.pull_request.html_url }}
You can’t perform that action at this time.
0 commit comments