Export var before sewnding it to GITHUB_ENV
This commit is contained in:
parent
61fe6ebc4d
commit
13e44537fe
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue