Export var before sewnding it to GITHUB_ENV
Some checks failed
/ cleanup (pull_request) Failing after 25s
/ preview (pull_request) Successful in 35s

This commit is contained in:
IkiWiki 2024-08-25 22:16:02 -04:00
parent 61fe6ebc4d
commit 13e44537fe
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541

View file

@ -19,7 +19,8 @@ jobs:
ref: public
- name: Render website
run: |
echo "GITHUB_PR_NAME=$(grep -l ${{ github.sha }} previews/*/git_sha.txt | awk -F '/' '{print $2}')" >> $GITHUB_ENV
export GITHUB_PR_NAME=$(grep -l ${{ github.sha }} previews/*/git_sha.txt | awk -F '/' '{print $2}')
echo $GITHUB_PR_NAME >> $GITHUB_ENV
rm -rf previews/$GITHUB_PR_NAME || true
cd previews
tree -d -H '.' -L 1 --noreport --charset utf-8 -T "Versions" -o index.html