Skip to content

Commit

Permalink
Fix bug in release tagging CI code
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
  • Loading branch information
Dave Henderson committed Aug 30, 2020
1 parent d71e73f commit 181926c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
- name: determine if this is a tag
run: |
if (git describe --abbrev=0 --exact-match &>/dev/null); then
tag=$(git describe --abbrev=0 --exact-match)
echo "::set-env name=is_tag::true"
echo "::set-env name=git_tag::$(git describe --abbrev=0 --exact-match)"
echo "::set-env name=git_tag::$tag"
# splits the major version from $tag - assumes it's a 3-part semver
echo "::set-env name=major_version::${tag%%\.*}"
fi
Expand Down

0 comments on commit 181926c

Please sign in to comment.