-
Notifications
You must be signed in to change notification settings - Fork 19
53 lines (44 loc) · 1.57 KB
/
psl.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Assets
on:
schedule:
- cron: '0 20 * * *'
jobs:
assets:
name: Update local assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn bootstrap
- name: Fetch latest assets
id: fetch
run: yarn update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.CREATE_PULL_REQUEST_TOKEN }}
commit-message: 'Update upstream public suffix list'
title: 'Update upstream public suffix list'
body: 'Automated update of upstream public suffix list'
reviewers: remusao
branch: update-psl
labels: 'PR: Update PSL :scroll:'
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"
echo "Pull Request Number - ${{ steps.cpr.outputs.pr_number }}"