Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 927f228

Browse files
committed
github: update PSL workflow
- Use the pull request action utilized by GitHub for their own projects - Switch to $GITHUB_ENV since set-env has been deprecated Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 8b86f36 commit 927f228

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/update_publicsuffix_data.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ jobs:
1414
run: |
1515
git config user.name "GitHub Actions"
1616
git config user.email [email protected]
17+
git checkout -b bot/update-psl
1718
1819
- name: Download new publicsuffix data
1920
run: curl -L https://github.com/mozilla-mobile/android-components/raw/master/components/lib/publicsuffixlist/src/main/assets/publicsuffixes -o autofill-parser/src/main/assets/publicsuffixes
2021

2122
- name: Compare list changes
22-
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi
23+
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
2324

2425
- name: Create Pull Request
25-
uses: peter-evans/create-pull-request@v3
26+
uses: repo-sync/pull-request@v2
2627
if: env.UPDATED == 'true'
2728
with:
28-
commit-message: Update Public Suffix List data
29-
branch: bot/update-psl
30-
base: develop
31-
title: 'Update Public Suffix List data'
29+
source_branch: bot/update-psl
30+
destination_branch: develop
31+
pr_title: "Update Public Suffix List data"
32+
pr_body: "This is an automated pull request to update the publicsuffixes file to the latest copy from Mozilla"
3233
assignees: msfjarvis
34+
pr_label: PSL
35+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)