Skip to content

Commit 1d0b7aa

Browse files
committed
ci: normalize external consumer artifact upload paths
1 parent 09d2413 commit 1d0b7aa

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎.github/workflows/vextjs-ci.yml‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ jobs:
104104
cache: npm
105105
- run: npm ci
106106
- run: npm run build && npm run build:tests
107+
- id: paths
108+
name: Normalize external consumer artifact paths
109+
shell: bash
110+
run: |
111+
node --input-type=module - <<'JS'
112+
import path from 'node:path';
113+
import { appendFileSync, mkdirSync } from 'node:fs';
114+
const artifacts = path.resolve(process.env.CG_ARTIFACTS_DIR);
115+
const framework = path.resolve(process.env.VEXT_ROOT);
116+
mkdirSync(artifacts, {recursive:true});
117+
appendFileSync(process.env.GITHUB_ENV, `CG_ARTIFACTS_DIR=${artifacts}\nVEXT_ROOT=${framework}\n`);
118+
appendFileSync(process.env.GITHUB_OUTPUT, `artifacts=${artifacts}\n`);
119+
JS
107120
- name: Build the fixed upstream source outside the project
108121
shell: bash
109122
run: |
@@ -127,6 +140,6 @@ jobs:
127140
with:
128141
name: vextjs-installed-business-consumer
129142
path: |
130-
${{ env.CG_ARTIFACTS_DIR }}/vextjs-e2e-*/reports
131-
${{ env.CG_ARTIFACTS_DIR }}/vextjs-e2e-*/logs
143+
${{ steps.paths.outputs.artifacts }}/vextjs-e2e-*/reports
144+
${{ steps.paths.outputs.artifacts }}/vextjs-e2e-*/logs
132145
retention-days: 7

0 commit comments

Comments
 (0)