Skip to content

Commit 53f872a

Browse files
authored
Collect globals on all platforms (#261)
1 parent 560cf2f commit 53f872a

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

.github/workflows/update.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,63 @@ on:
77
- cron: "0 0 1 * *"
88

99
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:
1151
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
1252
runs-on: ubuntu-latest
53+
needs: [update-on-windows]
1354
steps:
1455
- uses: actions/checkout@v4
1556
- uses: actions/setup-node@v4
1657
with:
1758
check-latest: true
1859
node-version: latest
1960
- run: npm install
61+
- uses: actions/download-artifact@v4
62+
with:
63+
name: data
64+
path: data
2065
- run: npm run update
21-
- uses: peter-evans/create-pull-request@v6
66+
- uses: peter-evans/create-pull-request@v7
2267
with:
2368
commit-message: Update globals
2469
branch: automated-update

0 commit comments

Comments
 (0)