-
-
Notifications
You must be signed in to change notification settings - Fork 62
33 lines (29 loc) · 1.38 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
31
32
33
name: psl update
on:
schedule:
- cron: '0 0 7 * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- id: update
name: Update public suffix list submodule
run: |
echo "::set-output name=old-sha::$(git -C src/cookies/psl/list rev-parse --short HEAD)"
git -C src/cookies/psl/list checkout master
git -C src/cookies/psl/list pull
echo "::set-output name=new-sha::$(git -C src/cookies/psl/list rev-parse --short HEAD)"
- 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 }}](https://github.com/publicsuffix/list/commit/${{ steps.update.outputs.old-sha }}) to [${{ steps.update.outputs.new-sha }}](https://github.com/publicsuffix/list/commit/${{ 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.