Skip to content

Commit

Permalink
tools: update wpt.fyi used daily checkout ref
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 19, 2023
1 parent b4a962d commit 901f88d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/daily-wpt-fyi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
- name: Set env.NODE
run: echo "NODE=$(which node)" >> $GITHUB_ENV
- name: Set env.WPT_DAILY_REF
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "WPT_DAILY_REF=$(gh api /repos/web-platform-tests/wpt/branches/epochs/daily | jq -r '.commit.sha')" >> $GITHUB_ENV

# replace checked out WPT with the synchronized branch
- name: Remove stale WPT
Expand All @@ -74,7 +78,7 @@ jobs:
persist-credentials: false
path: test/fixtures/wpt
clean: false
ref: epochs/daily
ref: ${{ env.WPT_DAILY_REF }}
- name: Set env.WPT_REVISION
run: echo "WPT_REVISION=$(git rev-parse HEAD)" >> $GITHUB_ENV
working-directory: test/fixtures/wpt
Expand Down

0 comments on commit 901f88d

Please sign in to comment.