summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-12-22 21:57:42 +0530
committerGitHub <noreply@github.com>2021-12-22 16:27:42 +0000
commitb93f4048902b832c27f5e14c9bfc32fa0133f0ce (patch)
tree8c3903ec7d5a2c97e06d231db43f957abbf31da4 /.github/workflows
parent126bed1a8b04a788fabc76dfa9037e10f6f71140 (diff)
github: use GH CLI for PSL PR manipulation (#1601)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/update_publicsuffix_data.yml24
1 files changed, 10 insertions, 14 deletions
diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml
index b6f81d99..a124bef2 100644
--- a/.github/workflows/update_publicsuffix_data.yml
+++ b/.github/workflows/update_publicsuffix_data.yml
@@ -43,21 +43,17 @@ jobs:
body: This is an automated pull request to update the publicsuffixes file to the latest copy from Mozilla
branch: bot/update-psl
commit-message: "autofill-parser: update publicsuffixes file"
- labels: PSL
+ labels: A-PSL
title: Update Public Suffix List data
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'
- uses: juliangruber/approve-pull-request-action@v1.1.0
- with:
- github-token: ${{ secrets.PSL_UPDATE_TOKEN }}
- number: ${{ steps.cpr.outputs.pull-request-number }}
-
- - name: Enable Pull Request Automerge
- if: steps.cpr.outputs.pull-request-operation == 'created'
- uses: peter-evans/enable-pull-request-automerge@v1.1.0
- with:
- token: ${{ secrets.PSL_UPDATE_TOKEN }}
- pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
- merge-method: squash
+ shell: bash
+ run: |
+ gh pr close "${PR_URL}"
+ gh pr reopen "${PR_URL}"
+ gh pr merge --squash --auto "${PR_URL}"
+ env:
+ GITHUB_TOKEN: ${{ secrets.PSL_UPDATE_TOKEN }}
+ PR_URL: ${{ steps.cpr.outputs.pull-request-url }}