diff --git a/.github/workflows/manual.yaml b/.github/workflows/manual.yaml index 70af73ac..05cc586c 100644 --- a/.github/workflows/manual.yaml +++ b/.github/workflows/manual.yaml @@ -18,7 +18,7 @@ jobs: shell: bash run: | echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> "$GITHUB_ENV" + echo "branch=$(echo $GITHUB_REF | sed 's/refs\/\(tags\|heads\)\///,s/\//_/g')" >> "$GITHUB_ENV" # Install mdbook - name: Install `mdbook`