mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
github: use GH CLI for PSL PR manipulation (#1601)
This commit is contained in:
parent
126bed1a8b
commit
b93f404890
24
.github/workflows/update_publicsuffix_data.yml
vendored
24
.github/workflows/update_publicsuffix_data.yml
vendored
@ -43,21 +43,17 @@ jobs:
|
|||||||
body: This is an automated pull request to update the publicsuffixes file to the latest copy from Mozilla
|
body: This is an automated pull request to update the publicsuffixes file to the latest copy from Mozilla
|
||||||
branch: bot/update-psl
|
branch: bot/update-psl
|
||||||
commit-message: "autofill-parser: update publicsuffixes file"
|
commit-message: "autofill-parser: update publicsuffixes file"
|
||||||
labels: PSL
|
labels: A-PSL
|
||||||
title: Update Public Suffix List data
|
title: Update Public Suffix List data
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Auto approve
|
- name: Close, re-open and enable squash merge for PR
|
||||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
if: steps.cpr.outputs.pull-request-operation == 'created'
|
||||||
uses: juliangruber/approve-pull-request-action@v1.1.0
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
github-token: ${{ secrets.PSL_UPDATE_TOKEN }}
|
gh pr close "${PR_URL}"
|
||||||
number: ${{ steps.cpr.outputs.pull-request-number }}
|
gh pr reopen "${PR_URL}"
|
||||||
|
gh pr merge --squash --auto "${PR_URL}"
|
||||||
- name: Enable Pull Request Automerge
|
env:
|
||||||
if: steps.cpr.outputs.pull-request-operation == 'created'
|
GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
|
||||||
uses: peter-evans/enable-pull-request-automerge@v1.1.0
|
PR_URL: ${{ steps.cpr.outputs.pull-request-url }}
|
||||||
with:
|
|
||||||
token: ${{ secrets.PSL_UPDATE_TOKEN }}
|
|
||||||
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
||||||
merge-method: squash
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user