Skip to content

Commit acf42a9

Browse files
Merge pull request #532 from Srihari1192/mcadCI/issue531
Fix MCAD CI check to validate special characters in branch name
2 parents f59e9bd + 23c9f1a commit acf42a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/mcad-CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919

2020
- name: Set latest tag and Branch name
2121
run: |
22-
echo "GIT_BRANCH=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
22+
BRANCH=${{ github.event.pull_request.head.ref }}
23+
echo "GIT_BRANCH=$(echo "$BRANCH" | sed 's/[^A-Za-z0-9._-]/-/g' )" >> $GITHUB_ENV
2324
echo "TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
2425
2526
- name: Set up Go

0 commit comments

Comments
 (0)