| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,14 +54,18 @@ jobs: | |||
| 54 | 54 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 55 | 55 | run: | | |
| 56 | 56 | 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 | ||
| 58 | 58 | - name: Checkout ${{ steps.setup-node.outputs.node-version }} | |
| 59 | 59 | uses: actions/checkout@v3 | |
| 60 | 60 | with: | |
| 61 | 61 | persist-credentials: false | |
| 62 | 62 | ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }} | |
| 63 | 63 | - name: Set env.NODE | |
| 64 | 64 | 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 | ||
| 65 | 69 | ||
| 66 | 70 | # replace checked out WPT with the synchronized branch | |
| 67 | 71 | - name: Remove stale WPT | |
@@ -74,7 +78,7 @@ jobs: | |||
| 74 | 78 | persist-credentials: false | |
| 75 | 79 | path: test/fixtures/wpt | |
| 76 | 80 | clean: false | |
| 77 | - ref: epochs/daily | ||
| 81 | + ref: ${{ env.WPT_DAILY_REF }} | ||
| 78 | 82 | - name: Set env.WPT_REVISION | |
| 79 | 83 | run: echo "WPT_REVISION=$(git rev-parse HEAD)" >> $GITHUB_ENV | |
| 80 | 84 | working-directory: test/fixtures/wpt | |
| Back | FazBrowse Home | New Git URL |
0 commit comments