Skip to content

Commit 9c58ea4

Browse files
committed
ci: fix docpublish workflow
It seems that it's possible to inject envs with current code. Fixing this issue. Signed-off-by: Kari Hamalainen <[email protected]>
1 parent 982ce25 commit 9c58ea4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docpublish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
- name: Obtain PR number
3232
working-directory: docs
3333
run: |
34-
echo "PR=$(cat pr.txt)" >> "$GITHUB_ENV"
34+
PR=$(head -n1 pr.txt 2>/dev/null) || true
35+
printf 'PR=%s\n' "$PR" >> "$GITHUB_ENV"
3536
3637
- name: Upload to Azure storage
3738
working-directory: docs

0 commit comments

Comments
 (0)