-
-
Notifications
You must be signed in to change notification settings - Fork 62
30 lines (26 loc) · 1.23 KB
/
psl-update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: psl update
on:
schedule:
- cron: '0 0 7 * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: update
name: Update public suffix list file
run: |
echo "::set-output name=old-sha::$(sha256sum src/cookies/psl/list/public_suffix_list.dat | cut -d " " -f 1)"
curl -o src/cookies/psl/list/public_suffix_list.dat https://publicsuffix.org/list/public_suffix_list.dat
echo "::set-output name=new-sha::$(sha256sum src/cookies/psl/list/public_suffix_list.dat | cut -d " " -f 1)"
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update Public Suffix List to ${{ steps.update.outputs.new-sha }}
branch: public-suffix-list/patch
title: Update Public Suffix List to ${{ steps.update.outputs.new-sha }}
labels: dependencies
body: |
Update Public Suffix List from ${{ steps.update.outputs.old-sha }} to ${{ steps.update.outputs.new-sha }}.
This pull request was generated automatically. If you close this pull request, I won't bother you again until the next automatically scheduled update.