99 # 1st day of each month
1010 - cron : ' 0 0 1 * *'
1111jobs :
12- build :
1312
13+ build :
1414 runs-on : windows-latest
1515 defaults :
1616 run :
@@ -20,58 +20,46 @@ jobs:
2020 node-version : [18.x]
2121 architecture : [x64]
2222 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23-
2423 steps :
25- - uses : actions/checkout@v3
26-
27- - name : Use Node.js ${{ matrix.node-version }}
28- uses : actions/setup-node@v3
29-
30- - name : Install project dependencies
31- run : npm install
32-
33- - name : Get the latest langtags.json
34- run : C:\msys64\usr\bin\wget.exe -O langtags.json https://github.com/silnrsi/langtags/raw/master/pub/langtags.json
35-
36- - name : Install TypeScript
37- run : npx tsc
38-
39- - name : Compile parse-langtags
40- run : npm run build
41-
42- - name : Generate iso639.txt
43- run : node ./dist/index.js -o iso639.txt
44-
45- - name : Show file locations
46- run : |
47- pwd
48- ls
49-
50- - name : Save iso639.txt artifact
51- uses : actions/upload-artifact@v3
52- with :
53- name : iso639.txt
54- path : DevUtils\parse-langtags\iso639.txt
55- retention-days : 30
56-
57- - name : Save langtags.json artifact
58- uses : actions/upload-artifact@v3
59- with :
60- name : langtags.json
61- path : DevUtils\parse-langtags\langtags.json
62- retention-days : 30
63-
64- - name : Overwrite file in DistFiles/
65- run : move iso639.txt ../../DistFiles/ -Force
66- # run: move ./dist/index.js ../../DistFiles/iso639.txt -Force #force diff for testing
67-
68- - name : Create Pull Request
69- uses : peter-evans/create-pull-request@v4
70- with :
71- commit-message : ' auto: update iso639.txt'
72- title : ' auto: Update iso639.txt'
73- body : Auto-generated PR to update iso639.txt
74- branch : ' auto/update-iso639'
75- labels : auto
76- base : ' master'
77- delete-branch : true
24+ - uses : actions/checkout@v5
25+ - name : Use Node.js ${{ matrix.node-version }}
26+ uses : actions/setup-node@v4
27+ - name : Install project dependencies
28+ run : npm install
29+ - name : Get the latest langtags.json
30+ run : C:\msys64\usr\bin\wget.exe -O langtags.json https://github.com/silnrsi/langtags/raw/master/pub/langtags.json
31+ - name : Install TypeScript
32+ run : npx tsc
33+ - name : Compile parse-langtags
34+ run : npm run build
35+ - name : Generate iso639.txt
36+ run : node ./dist/index.js -o iso639.txt
37+ - name : Show file locations
38+ run : |
39+ pwd
40+ ls
41+ - name : Save iso639.txt artifact
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : iso639.txt
45+ path : DevUtils\parse-langtags\iso639.txt
46+ retention-days : 30
47+ - name : Save langtags.json artifact
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : langtags.json
51+ path : DevUtils\parse-langtags\langtags.json
52+ retention-days : 30
53+ - name : Overwrite file in DistFiles/
54+ run : move iso639.txt ../../DistFiles/ -Force
55+ # run: move ./dist/index.js ../../DistFiles/iso639.txt -Force #force diff for testing
56+ - name : Create Pull Request
57+ uses : peter-evans/create-pull-request@v7
58+ with :
59+ commit-message : ' auto: update iso639.txt'
60+ title : ' auto: Update iso639.txt'
61+ body : Auto-generated PR to update iso639.txt
62+ branch : ' auto/update-iso639'
63+ labels : auto
64+ base : ' master'
65+ delete-branch : true
0 commit comments