diff --git a/.github/workflows/mcad-CI.yml b/.github/workflows/mcad-CI.yml index 0d6ebbd03..614d3439c 100644 --- a/.github/workflows/mcad-CI.yml +++ b/.github/workflows/mcad-CI.yml @@ -19,7 +19,8 @@ jobs: - name: Set latest tag and Branch name run: | - echo "GIT_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV + BRANCH=${{ github.event.pull_request.head.ref }} + echo "GIT_BRANCH=$(echo "$BRANCH" | sed 's/[^A-Za-z0-9._-]/-/g' )" >> $GITHUB_ENV echo "TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV - name: Set up Go