Skip to content

Commit 617b5b1

Browse files
panvatargos
authored andcommitted
tools: update wpt.fyi used daily checkout ref
PR-URL: #46730 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 1f38657 commit 617b5b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/daily-wpt-fyi.yml

+6-2
Original file line numberDiff line numberDiff 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
@@ -74,7 +78,7 @@ jobs:
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

0 commit comments

Comments
 (0)