diff --git a/.forgejo/workflows/cleanup.yaml b/.forgejo/workflows/cleanup.yaml index 77461a1..69921a7 100644 --- a/.forgejo/workflows/cleanup.yaml +++ b/.forgejo/workflows/cleanup.yaml @@ -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