File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ name: Auto-merge OpenAPI updates
22on :
33 pull_request :
44 types : [opened, synchronize, closed]
5-
65jobs :
76 auto-merge :
87 if : |
8+ github.event.action != 'closed' &&
99 github.event_name == 'pull_request' &&
10- startsWith(github.head_ref , 'auto/update-openapi') &&
10+ startsWith(github.event.pull_request.head.ref , 'auto/update-openapi') &&
1111 github.event.pull_request.head.repo.full_name == github.repository &&
1212 github.event.pull_request.user.login == '0x-automation[bot]'
1313 runs-on : ubuntu-latest
@@ -23,12 +23,11 @@ jobs:
2323 - name : Log merge status
2424 run : |
2525 echo "✅ Auto-merge enabled for PR: ${{ github.event.pull_request.html_url }}"
26-
2726 publish-after-merge :
2827 if : |
2928 github.event_name == 'pull_request' &&
3029 github.event.pull_request.merged == true &&
31- startsWith(github.head_ref , 'auto/update-openapi') &&
30+ startsWith(github.event.pull_request.head.ref , 'auto/update-openapi') &&
3231 github.event.pull_request.user.login == '0x-automation[bot]'
3332 runs-on : ubuntu-latest
3433 permissions :
You can’t perform that action at this time.
0 commit comments