We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b331e09 commit 535fd5eCopy full SHA for 535fd5e
.github/workflows/ci.yml
@@ -171,8 +171,15 @@ jobs:
171
- uses: actions/checkout@v2
172
- name: Get Tags
173
run: |
174
- git fetch --tags
175
- git describe --tags $(git rev-list --tags --max-count=1)
+ TAG="$(git tag --points-at HEAD)"
+ if [ ! -z "$TAG" ]; then
176
+ SUFFIX="$TAG"
177
+ elif [ "$EVENT_NAME" == "pull_request" ]; then
178
+ PR_TITLE=$(echo "${PR_TITLE}" | tr -cd '[a-zA-Z0-9[:space:]]_-')
179
+ SUFFIX="pr[$PR_NUM]-sha[$PR_SHA]-title[$PR_TITLE"
180
+ SUFFIX=$(printf "%.99s]" "$SUFFIX")
181
+ else
182
+ SUFFIX="sha[$(git rev-parse --short HEAD)]"
183
- name: Setup Submodules
184
run: git config --global --add safe.directory . && git submodule update --init --recursive
185
- name: Setup MSBuild
0 commit comments