Skip to content

Commit a3b7052

Browse files
committed
Set SITE_DIR from a step since the runner context is unavailable in job-level env
1 parent 4166618 commit a3b7052

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/docs-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ concurrency:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17-
env:
18-
SITE_DIR: ${{ runner.temp }}/httk-docs-site
1917
steps:
18+
- name: Resolve the site staging directory
19+
run: echo "SITE_DIR=$RUNNER_TEMP/httk-docs-site" >> "$GITHUB_ENV"
20+
2021
- uses: actions/checkout@v4
2122
with:
2223
fetch-depth: 0

.github/workflows/docs-repair.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
environment: docs-repair
22-
env:
23-
SITE_DIR: ${{ runner.temp }}/httk-docs-site
2422
steps:
23+
- name: Resolve the site staging directory
24+
run: echo "SITE_DIR=$RUNNER_TEMP/httk-docs-site" >> "$GITHUB_ENV"
25+
2526
- uses: actions/checkout@v4
2627
with:
2728
fetch-depth: 0

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ concurrency:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18-
env:
19-
SITE_DIR: ${{ runner.temp }}/httk-docs-site
2018
steps:
19+
- name: Resolve the site staging directory
20+
run: echo "SITE_DIR=$RUNNER_TEMP/httk-docs-site" >> "$GITHUB_ENV"
21+
2122
- uses: actions/checkout@v4
2223
with:
2324
fetch-depth: 0

0 commit comments

Comments
 (0)