Skip to content

Commit

Permalink
try remove env
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed May 17, 2023
1 parent 89d39a4 commit da8a6ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ jobs:
repository: pytorch/vision
download-artifact: docs
ref: gh-pages
env:
TARGET: main
script: |
set -euo pipefail
TARGET=${{ github.ref_name }}
if [[ ${{ github.ref_type }} == 'tag' ]]; then
case "${TARGET}" in
*-rc*)
Expand All @@ -85,6 +84,8 @@ jobs:
echo "Target Folder: ${TARGET}"
;;
esac
else
echo "Branch: ${TARGET}"
fi
mkdir -p "${TARGET}"
Expand Down

0 comments on commit da8a6ff

Please sign in to comment.