File tree 1 file changed +47
-2
lines changed 1 file changed +47
-2
lines changed Original file line number Diff line number Diff line change 7
7
- cron : " 0 0 1 * *"
8
8
9
9
jobs :
10
- update :
10
+ update-on-macos :
11
+ if : github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
12
+ runs-on : macos-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : actions/setup-node@v4
16
+ with :
17
+ check-latest : true
18
+ node-version : latest
19
+ - run : npm install
20
+ - run : npm run update
21
+ - uses : actions/upload-artifact@v4
22
+ with :
23
+ name : data
24
+ path : data
25
+ if-no-files-found : error
26
+
27
+ update-on-windows :
28
+ if : github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
29
+ runs-on : windows-latest
30
+ needs : [update-on-macos]
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - uses : actions/setup-node@v4
34
+ with :
35
+ check-latest : true
36
+ node-version : latest
37
+ - run : npm install
38
+ - uses : actions/download-artifact@v4
39
+ with :
40
+ name : data
41
+ path : data
42
+ - run : npm run update
43
+ - uses : actions/upload-artifact@v4
44
+ with :
45
+ name : data
46
+ path : data
47
+ if-no-files-found : error
48
+ overwrite : true
49
+
50
+ update-on-linux :
11
51
if : github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
12
52
runs-on : ubuntu-latest
53
+ needs : [update-on-windows]
13
54
steps :
14
55
- uses : actions/checkout@v4
15
56
- uses : actions/setup-node@v4
16
57
with :
17
58
check-latest : true
18
59
node-version : latest
19
60
- run : npm install
61
+ - uses : actions/download-artifact@v4
62
+ with :
63
+ name : data
64
+ path : data
20
65
- run : npm run update
21
- - uses : peter-evans/create-pull-request@v6
66
+ - uses : peter-evans/create-pull-request@v7
22
67
with :
23
68
commit-message : Update globals
24
69
branch : automated-update
You can’t perform that action at this time.
0 commit comments