Skip to content

Commit 81162db

Browse files
panvaaduh95
authored andcommitted
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: #66013 Backport-PR-URL: #66970 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent d88d62c commit 81162db

3 files changed

Lines changed: 3 additions & 26 deletions

File tree

‎.github/workflows/build-tarball.yml‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ jobs:
6868
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
6969
SCCACHE_IDLE_TIMEOUT: '0'
7070
steps:
71-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
72-
with:
73-
persist-credentials: false
74-
sparse-checkout: .github/actions/install-clang
75-
sparse-checkout-cone-mode: false
7671
- name: Set up Python ${{ env.PYTHON_VERSION }}
7772
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
7873
with:

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -105,33 +105,15 @@ jobs:
105105
else
106106
echo "UNDICI_WPT=legacy" >> $GITHUB_ENV
107107
fi
108-
# Checkout composite actions from the default branch since the
109-
# version-specific checkout above overwrites .github/actions/
110-
- name: Checkout undici WPT actions
111-
if: ${{ env.WPT_REPORT != '' }}
112-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
113-
with:
114-
sparse-checkout: |
115-
.github/actions/undici-wpt-current
116-
.github/actions/undici-wpt-legacy
117-
sparse-checkout-cone-mode: false
118-
persist-credentials: false
119-
path: _wpt_actions
120-
clean: false
121-
- name: Place undici WPT actions
122-
if: ${{ env.WPT_REPORT != '' }}
123-
run: |
124-
mkdir -p .github/actions
125-
cp -r _wpt_actions/.github/actions/undici-wpt-* .github/actions/
126108
- name: Run undici WPT (current)
127109
if: ${{ env.UNDICI_WPT == 'current' }}
128-
uses: ./.github/actions/undici-wpt-current
110+
uses: $/.github/actions/undici-wpt-current
129111
with:
130112
undici-version: ${{ env.UNDICI_VERSION }}
131113
wpt-report: ${{ env.WPT_REPORT }}
132114
- name: Run undici WPT (legacy)
133115
if: ${{ env.UNDICI_WPT == 'legacy' }}
134-
uses: ./.github/actions/undici-wpt-legacy
116+
uses: $/.github/actions/undici-wpt-legacy
135117
with:
136118
undici-version: ${{ env.UNDICI_VERSION }}
137119
wpt-report: ${{ env.WPT_REPORT }}

‎.github/workflows/stress-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
path: node
6161
- name: Install Clang ${{ env.CLANG_VERSION }}
6262
if: runner.os == 'Linux'
63-
uses: ./node/.github/actions/install-clang
63+
uses: $/.github/actions/install-clang
6464
with:
6565
clang-version: ${{ env.CLANG_VERSION }}
6666
- name: Set up Xcode ${{ env.XCODE_VERSION }}

0 commit comments

Comments
 (0)