File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,18 @@ jobs:
5454 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5555 run : |
5656 SHORT_SHA=$(node -p 'process.version.split(/-nightly\d{8}/)[1]')
57- echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA | jq -r '.sha')" >> $GITHUB_ENV
57+ echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA --jq '.sha')" >> $GITHUB_ENV
5858 - name : Checkout ${{ steps.setup-node.outputs.node-version }}
5959 uses : actions/checkout@v3
6060 with :
6161 persist-credentials : false
6262 ref : ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
6363 - name : Set env.NODE
6464 run : echo "NODE=$(which node)" >> $GITHUB_ENV
65+ - name : Set env.WPT_DAILY_REF
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ run : echo "WPT_DAILY_REF=$(gh api /repos/web-platform-tests/wpt/branches/epochs/daily --jq '.commit.sha')" >> $GITHUB_ENV
6569
6670 # replace checked out WPT with the synchronized branch
6771 - name : Remove stale WPT
7478 persist-credentials : false
7579 path : test/fixtures/wpt
7680 clean : false
77- ref : epochs/daily
81+ ref : ${{ env.WPT_DAILY_REF }}
7882 - name : Set env.WPT_REVISION
7983 run : echo "WPT_REVISION=$(git rev-parse HEAD)" >> $GITHUB_ENV
8084 working-directory : test/fixtures/wpt
You can’t perform that action at this time.
0 commit comments