Skip to content

Commit

Permalink
πŸ“š Fix manual CI to handle branches and tags
Browse files Browse the repository at this point in the history
Change the reference computation to use a `sed` call instead of bash
variable trimming so that it can handle tags and remove the slashes from
tag paths as well as branch refs.

Also remove potential slashes from either tags or branch names.
  • Loading branch information
Lymkwi committed Oct 15, 2023
1 parent 8744c3d commit 6b0098a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 6b0098a

Please sign in to comment.