From 71d94346af77e2f233235cae16a49028f272a9dc Mon Sep 17 00:00:00 2001 From: fisker Date: Fri, 27 Sep 2024 22:58:34 +0800 Subject: [PATCH] All platforms --- .github/workflows/update.yml | 43 +++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index a28e1b4..50d1484 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -7,7 +7,7 @@ on: - cron: "0 0 1 * *" jobs: - update: + update-on-macos: if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals' runs-on: macos-latest steps: @@ -18,9 +18,50 @@ jobs: node-version: latest - run: npm install - run: npm run update + - uses: actions/upload-artifact@v4 + with: + name: data + path: data + + update-on-windows: + if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals' + runs-on: windows-latest + 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 + + update-on-linux: + if: github.event_name != 'schedule' || github.repository == 'sindresorhus/globals' + runs-on: ubuntu-latest + 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@v7 with: commit-message: Update globals branch: automated-update branch-suffix: timestamp title: Update globals +