Skip to content

Commit 02f1858

Browse files
committed
On verify PR check for initial triggering actor instead of current actor
So we can easily update PR's manually in case of issues
1 parent 289a432 commit 02f1858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/Verify.Redist.Update.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ jobs:
131131
fi
132132
133133
- name: Enable PR automerge
134-
if: success() && env.ALLOW_AUTO_MERGE_REDIST_PR == 'true' && github.actor == 'rocketmodfixadmin'
134+
if: success() && env.ALLOW_AUTO_MERGE_REDIST_PR == 'true' && github.triggering_actor == 'rocketmodfixadmin'
135135
uses: peter-evans/enable-pull-request-automerge@v3
136136
with:
137137
token: ${{ secrets.PAT }}
138138
pull-request-number: ${{ github.event.pull_request.number }}
139139
merge-method: squash
140140

141141
- name: Auto-approve PR
142-
if: success() && env.ALLOW_AUTO_MERGE_REDIST_PR == 'true' && github.actor == 'rocketmodfixadmin'
142+
if: success() && env.ALLOW_AUTO_MERGE_REDIST_PR == 'true' && github.triggering_actor == 'rocketmodfixadmin'
143143
uses: hmarr/auto-approve-action@v4
144144
with:
145145
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)