-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (50 loc) · 1.4 KB
/
unicode.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
name: Unicode Version Check
on:
schedule:
- cron: '0 0 * * *'
jobs:
check:
name: Version Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
- name: Install dependencies
run: npm ci
- run: npm run build:unicode-checkversion
upgrade:
name: Upgrade Version
runs-on: ubuntu-latest
needs:
- check
if: failure()
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v3
with:
node-version: 18
check-latest: true
- name: Install dependencies
run: npm ci
- name: Upgrade Unicode Version
run: npm run build:unicode-upgrade
- name: Generate IDNA Mapping File
run: npm run build
- name: Auto-Lint Code
run: npx lint-staged
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'feat(unicode): upgraded version'
branch: upgradeUnicode
base: master
title: 'Upgrade Unicode to latest Version'
assignees: KaiSchwarz-cnic
reviewers: KaiSchwarz-cnic