-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.25 KB
/
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
34
35
36
37
38
39
40
41
42
43
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Update PSL
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * MON'
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:v2
- name: Install Composer dependencies (${{ matrix.dependencies }})
uses: ramsey/composer-install@v2
with:
dependency-versions: lowest
composer-options: --prefer-dist --prefer-stable
- name: Install libpsl tools
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: psl
- name: Update public suffix list
run: composer run update-list
- name: Update libpsl tests
run: composer run update-psl-tests
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
title: Automated updates from PSL upstream
commit-message: "[bot] updates psl from upstream"
base: main
branch: psl-updates
delete-branch: true