mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
tools: use self-repository references
Resolve local actions and reusable workflows from the running workflow commit with $/ references, independent of checkout paths. Remove the tarball job's action-only checkout and the WPT action checkout/copy workaround, which are no longer needed. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: https://github.com/nodejs/node/pull/66013 Backport-PR-URL: https://github.com/nodejs/node/pull/66970 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
d88d62ce2e
commit
81162db206
3 files changed
+3
-26
No files matched your search
@@ -68,11 +68,6 @@ jobs:
|
||||
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
|
||||
SCCACHE_IDLE_TIMEOUT: '0'
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
sparse-checkout: .github/actions/install-clang
|
||||
sparse-checkout-cone-mode: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
||||
with:
|
||||
|
||||
@@ -105,33 +105,15 @@ jobs:
|
||||
else
|
||||
echo "UNDICI_WPT=legacy" >> $GITHUB_ENV
|
||||
fi
|
||||
# Checkout composite actions from the default branch since the
|
||||
# version-specific checkout above overwrites .github/actions/
|
||||
- name: Checkout undici WPT actions
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github/actions/undici-wpt-current
|
||||
.github/actions/undici-wpt-legacy
|
||||
sparse-checkout-cone-mode: false
|
||||
persist-credentials: false
|
||||
path: _wpt_actions
|
||||
clean: false
|
||||
- name: Place undici WPT actions
|
||||
if: ${{ env.WPT_REPORT != '' }}
|
||||
run: |
|
||||
mkdir -p .github/actions
|
||||
cp -r _wpt_actions/.github/actions/undici-wpt-* .github/actions/
|
||||
- name: Run undici WPT (current)
|
||||
if: ${{ env.UNDICI_WPT == 'current' }}
|
||||
uses: ./.github/actions/undici-wpt-current
|
||||
uses: $/.github/actions/undici-wpt-current
|
||||
with:
|
||||
undici-version: ${{ env.UNDICI_VERSION }}
|
||||
wpt-report: ${{ env.WPT_REPORT }}
|
||||
- name: Run undici WPT (legacy)
|
||||
if: ${{ env.UNDICI_WPT == 'legacy' }}
|
||||
uses: ./.github/actions/undici-wpt-legacy
|
||||
uses: $/.github/actions/undici-wpt-legacy
|
||||
with:
|
||||
undici-version: ${{ env.UNDICI_VERSION }}
|
||||
wpt-report: ${{ env.WPT_REPORT }}
|
||||
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
path: node
|
||||
- name: Install Clang ${{ env.CLANG_VERSION }}
|
||||
if: runner.os == 'Linux'
|
||||
uses: ./node/.github/actions/install-clang
|
||||
uses: $/.github/actions/install-clang
|
||||
with:
|
||||
clang-version: ${{ env.CLANG_VERSION }}
|
||||
- name: Set up Xcode ${{ env.XCODE_VERSION }}
|
||||
|
||||
Reference in new issue
Block a user