Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 617b5b1

Browse filesBrowse 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
Copy full SHA for 617b5b1

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: .github/workflows/daily-wpt-fyi.yml
+6-2Lines changed: 6 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.