Skip to content

Commit

Permalink
update publish workflow to ensure version is put into annotations (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyagiparth authored Jan 22, 2021
1 parent 2f5dc34 commit d04ac04
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/registry-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,26 @@ jobs:

- name: List files
run: ls -l

- name: Get latest version tag
run: |-
echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Trim tag
run: |-
echo $VERSION
trim=${VERSION#"v"}
echo $trim
echo "VERSION=${trim}" >> $GITHUB_ENV
- name: Validate Version String
run: |-
if [[ $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Version OK: $VERSION"
else
echo "Invalid version: $VERSION"
exit 1
fi
# create the config file
- run: |-
Expand Down

0 comments on commit d04ac04

Please sign in to comment.