Skip to content

Commit

Permalink
Collect globals on all platforms (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored Sep 27, 2024
1 parent 560cf2f commit 53f872a
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,63 @@ on:
- cron: "0 0 1 * *"

jobs:
update:
update-on-macos:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
check-latest: true
node-version: latest
- run: npm install
- run: npm run update
- uses: actions/upload-artifact@v4
with:
name: data
path: data
if-no-files-found: error

update-on-windows:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
runs-on: windows-latest
needs: [update-on-macos]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
check-latest: true
node-version: latest
- run: npm install
- uses: actions/download-artifact@v4
with:
name: data
path: data
- run: npm run update
- uses: actions/upload-artifact@v4
with:
name: data
path: data
if-no-files-found: error
overwrite: true

update-on-linux:
if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals'
runs-on: ubuntu-latest
needs: [update-on-windows]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
check-latest: true
node-version: latest
- run: npm install
- uses: actions/download-artifact@v4
with:
name: data
path: data
- run: npm run update
- uses: peter-evans/create-pull-request@v6
- uses: peter-evans/create-pull-request@v7
with:
commit-message: Update globals
branch: automated-update
Expand Down

0 comments on commit 53f872a

Please sign in to comment.