From a6b8e79d36d8900597aec8dfc2eb57838bb14188 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 28 Aug 2021 17:09:10 +0530 Subject: Directly push PSL updates to develop (#1494) --- .github/workflows/update_publicsuffix_data.yml | 27 ++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to '.github') diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml index dbe321cc..7c84aecf 100644 --- a/.github/workflows/update_publicsuffix_data.yml +++ b/.github/workflows/update_publicsuffix_data.yml @@ -9,6 +9,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f + with: + persist-credentials: false + fetch-depth: 0 - name: Download new publicsuffix data uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6 @@ -22,18 +25,18 @@ jobs: uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6 if: env.UPDATED == 'true' with: - arguments: :autofill-parser:test + arguments: :autofill-parser:test -PslimTests + + - name: Commit changes + if: env.UPDATED == 'true' + run: | + git config --local user.name "GitHub Actions" + git config --local user.email "noreply@github.com" + git commit -am "autofill-parser: update publicsuffixes file" - - name: Create Pull Request - uses: peter-evans/create-pull-request@01f7dd1d28f5131231ba3ede0f1c8cb413584a1d + - name: Push to develop + uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 if: env.UPDATED == 'true' with: - assignees: msfjarvis - author: GitHub Actions - base: develop - 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 - title: Update Public Suffix List data - token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.PSL_UPDATE_TOKEN }} + branch: develop -- cgit v1.2.3