Skip to content

Commit 07abc09

Browse files
authored
ci: create psl-update.yml
1 parent b01f76c commit 07abc09

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/psl-update.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PSL Updates
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 1 * *"
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Prepare branch
11+
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 1
14+
token: ${{secrets.GITHUB_TOKEN}}
15+
- name: Test using Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: "v22"
19+
- name: Install ts-node
20+
run: npm i -g ts-node
21+
- name: Install dependencies
22+
run: npm install
23+
- name: Update psl
24+
run: ts-node ./script/psl.ts
25+
- name: Create Pull Request
26+
uses: peter-evans/create-pull-request@v7
27+
with:
28+
commit-message: "chore(psl): update PSL list by bot"
29+
branch: psl-update/patch
30+
title: "chore(psl): update PSL list by bot"
31+
body: "Automated update [PSL](https://publicsuffix.org/list/effective_tld_names.dat)"
32+
author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
33+
sign-commits: true

0 commit comments

Comments
 (0)