mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-05 15:45:42 +02:00
fix(github): open automated PRs as (@)msfjarvis
This saves a close-reopen round trip since human created PRs automatically trigger checks
This commit is contained in:
parent
862bc59f54
commit
9fd8d012c6
6
.github/workflows/sync_crowdin.yml
vendored
6
.github/workflows/sync_crowdin.yml
vendored
|
@ -42,14 +42,12 @@ jobs:
|
||||||
commit-message: "strings: sync with crowdin"
|
commit-message: "strings: sync with crowdin"
|
||||||
labels: A-localisation, P-low, S-waiting-on-review
|
labels: A-localisation, P-low, S-waiting-on-review
|
||||||
title: Sync localisations from Crowdin
|
title: Sync localisations from Crowdin
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PSL_UPDATE_TOKEN }}
|
||||||
|
|
||||||
- name: Close, re-open and enable squash merge for PR
|
- name: Enable automerge for PR
|
||||||
if: "${{ steps.cpr.outputs.pull-request-operation == 'created' }}"
|
if: "${{ steps.cpr.outputs.pull-request-operation == 'created' }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gh pr close "${PR_URL}"
|
|
||||||
gh pr reopen "${PR_URL}"
|
|
||||||
gh pr merge --squash --auto "${PR_URL}"
|
gh pr merge --squash --auto "${PR_URL}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
|
||||||
|
|
|
@ -45,14 +45,12 @@ jobs:
|
||||||
commit-message: "autofill-parser: update publicsuffixes file"
|
commit-message: "autofill-parser: update publicsuffixes file"
|
||||||
labels: A-PSL
|
labels: A-PSL
|
||||||
title: Update Public Suffix List data
|
title: Update Public Suffix List data
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PSL_UPDATE_TOKEN }}
|
||||||
|
|
||||||
- name: Close, re-open and enable squash merge for PR
|
- name: Enable automerge for PR
|
||||||
if: "${{ steps.cpr.outputs.pull-request-operation == 'created' }}"
|
if: "${{ steps.cpr.outputs.pull-request-operation == 'created' }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gh pr close "${PR_URL}"
|
|
||||||
gh pr reopen "${PR_URL}"
|
|
||||||
gh pr merge --squash --auto "${PR_URL}"
|
gh pr merge --squash --auto "${PR_URL}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue