diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-07-15 00:08:34 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-14 20:38:34 +0200 |
| commit | 06b226ae8db093c4155f2fe2b4244f88c972631a (patch) | |
| tree | 1661d4ae162d17c6548297c3f2d0dacd3d6dafdd /.github/workflows/update_publicsuffix_data.yml | |
| parent | 1d7ec5ba6f230fa23e33426f5eecf801e2ab5d26 (diff) | |
| download | HardenedPass-06b226ae8db093c4155f2fe2b4244f88c972631a.tar.gz HardenedPass-06b226ae8db093c4155f2fe2b4244f88c972631a.zip | |
github: update all Actions (#934)
Switch publicsuffix update workflow to use the same pull-request action
as release drafter.
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '.github/workflows/update_publicsuffix_data.yml')
| -rw-r--r-- | .github/workflows/update_publicsuffix_data.yml | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/.github/workflows/update_publicsuffix_data.yml b/.github/workflows/update_publicsuffix_data.yml index 3481e7aa..27a2ab14 100644 --- a/.github/workflows/update_publicsuffix_data.yml +++ b/.github/workflows/update_publicsuffix_data.yml @@ -8,22 +8,26 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Download new publicsuffix data run: curl -L https://github.com/mozilla-mobile/android-components/raw/master/components/lib/publicsuffixlist/src/main/assets/publicsuffixes -o app/src/main/assets/publicsuffixes + - name: Compare list changes run: if [[ $(git diff --binary --stat) != '' ]]; then echo "::set-env name=UPDATED::true"; fi + + - name: Commit changes + if: env.UPDATED == 'true' + run: | + git checkout -b bot/update-psl + git add app/src/main/assets/publicsuffixes + git commit --message "Update Public Suffix List data' + - name: Create update PR - uses: peter-evans/create-pull-request@v2 + uses: thomaseizinger/create-pull-request@1.0.0 if: env.UPDATED == 'true' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_PERSONAL_TOKEN }} with: - token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'Update Public Suffix List data' - committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + head: bot/update-psl + base: develop title: 'Update Public Suffix List data' body: 'Updates Public Suffix List from https://publicsuffix.org/list/' - assignees: msfjarvis - labels: PSL - branch: bot/update-psl |
