2020-07-29 07:38:38 +00:00
|
|
|
name: Update Publix Suffix List data
|
2020-05-12 09:17:08 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
2020-05-29 05:59:06 +00:00
|
|
|
- cron: '0 0 * * 6'
|
2020-05-12 09:17:08 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-publicsuffix-data:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2020-12-07 07:47:16 +00:00
|
|
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
2021-08-28 11:39:10 +00:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
fetch-depth: 0
|
2020-08-13 10:47:04 +00:00
|
|
|
|
2020-05-12 09:17:08 +00:00
|
|
|
- name: Download new publicsuffix data
|
2021-10-28 01:34:29 +00:00
|
|
|
uses: gradle/gradle-build-action@cba1833ddecbbee649950c284416981928631008
|
2021-07-29 15:53:59 +00:00
|
|
|
with:
|
|
|
|
arguments: updatePSL
|
2020-07-14 18:38:34 +00:00
|
|
|
|
2020-05-12 09:17:08 +00:00
|
|
|
- name: Compare list changes
|
2020-10-10 06:29:01 +00:00
|
|
|
run: if [[ $(git diff --binary --stat) != '' ]]; then echo "UPDATED=true" >> $GITHUB_ENV; fi
|
2020-07-14 18:38:34 +00:00
|
|
|
|
2021-07-29 15:53:59 +00:00
|
|
|
- name: Verify update publicsuffixes file
|
|
|
|
uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6
|
|
|
|
if: env.UPDATED == 'true'
|
|
|
|
with:
|
2021-08-28 11:39:10 +00:00
|
|
|
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"
|
2021-07-29 15:53:59 +00:00
|
|
|
|
2021-08-28 11:39:10 +00:00
|
|
|
- name: Push to develop
|
|
|
|
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6
|
2020-05-12 09:17:08 +00:00
|
|
|
if: env.UPDATED == 'true'
|
|
|
|
with:
|
2021-08-28 11:39:10 +00:00
|
|
|
github_token: ${{ secrets.PSL_UPDATE_TOKEN }}
|
|
|
|
branch: develop
|