We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e17fffc commit 02c902eCopy full SHA for 02c902e
1 file changed
.github/workflows/daily-wpt-fyi.yml
@@ -6,11 +6,6 @@ name: Daily WPT report
6
7
on:
8
workflow_dispatch:
9
- inputs:
10
- node-versions:
11
- description: Node.js versions (as supported by actions/setup-node) to test as JSON array
12
- required: false
13
- default: '["current", "lts/*", "lts/-1"]'
14
schedule:
15
# This is 20 minutes after `epochs/daily` branch is triggered to be created
16
# in WPT repo.
@@ -24,11 +19,22 @@ permissions:
24
19
contents: read
25
20
26
21
jobs:
27
- report:
22
+ collect-versions:
28
23
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
+ runs-on: ubuntu-latest
+ outputs:
+ matrix: ${{ steps.query.outputs.matrix }}
+ steps:
+ - id: query
29
+ run: |
30
+ matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber] + ["latest-nightly"]')
31
+ echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
32
+ report:
33
+ needs:
34
+ - collect-versions
35
strategy:
36
matrix:
- node-version: ${{ fromJSON(github.event.inputs.node-versions || '["latest-nightly", "current", "lts/*", "lts/-1"]') }}
37
+ node-version: ${{ fromJSON(needs.collect-versions.outputs.matrix) }}
38
fail-fast: false
39
runs-on: ubuntu-latest
40
steps:
0 commit comments