Skip to content

Commit

Permalink
Trying an alternate way of getting the git info
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Oct 4, 2023
1 parent 76a61e4 commit 5e7a9db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/showversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ jobs:
id: get_version
run: |
echo "VERSION=${{ github.ref }}" >> $GITHUB_OUTPUT
echo ${GITHUB_OUTPUT}
GITFULLSEMVER=`echo ${GITHUB_OUTPUT} | grep GitVersion_FullSemVer | awk '{print $2}'`
GITSHORTSHA=`echo ${GITHUB_OUTPUT} | grep GitVersion_ShortSha | awk '{print $2}'`
GITVERSION2=${GITFULLSEMVER}.${GITSHORTSHA}
GITLONGTAG2=`echo ${GITHUB_OUTPUT} | grep GitVersion_Sha | awk '{print $2}'`
GITDATE2=`echo ${GITHUB_OUTPUT} | grep GitVersion_CommitDate | awk '{print $2}'`"T00:00:00-0000"
echo "GITVERSION2: ${GITVERSION2}"
echo "GITLONGTAG2: ${GITLONGTAG2}"
echo "GITDATE2: ${GITDATE2}"

0 comments on commit 5e7a9db

Please sign in to comment.