Skip to content

Commit f09abf7

Browse files
authored
Merge pull request #14 from jski/feature/automate-new-pr-approval
Updated to autogenerate PR and approve it after tests pass for new versions
2 parents 26f1b98 + 8043e3c commit f09abf7

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/check-versions.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,11 @@ jobs:
182182
fi
183183
184184
- name: Create Pull Request
185+
id: cpr
185186
if: steps.update-readme.outputs.changes_detected == 'true' || steps.check.outputs.new_minor_version
186187
uses: peter-evans/create-pull-request@v7
187188
with:
188-
token: ${{ secrets.GITHUB_TOKEN }}
189+
token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
189190
commit-message: |
190191
chore: Update Python versions
191192
@@ -208,11 +209,16 @@ jobs:
208209
$(cat /tmp/versions.txt)
209210
```
210211
211-
### What happens next?
212-
1. Review the changes
213-
2. Merge this PR to trigger a new build with updated versions
214-
3. Images will be built and pushed automatically
212+
### Auto-merge enabled
213+
This PR will automatically merge when all required status checks pass.
215214
216215
---
217216
🤖 Auto-generated by weekly version check workflow
218217
labels: dependencies,automated
218+
219+
- name: Enable auto-merge
220+
if: steps.cpr.outputs.pull-request-number
221+
run: |
222+
gh pr merge ${{ steps.cpr.outputs.pull-request-number }} --auto --squash
223+
env:
224+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)