Skip to content

Commit

Permalink
ci git ref
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jan 9, 2020
1 parent 7279a9c commit 6621e7c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,12 @@ jobs:
ref: 'master'
fetch-depth: '0'

- name: Set env
run: |
echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
echo "Current Tag: ${RELEASE_VERSION}"
- name: Generate Git log
run: |
git fetch origin +refs/tags/*:refs/tags/*
GITVER=${RELEASE_VERSION}
echo "Current Tag: ${GITHUB_REF}"
git checkout ${GITHUB_REF} -b compile
GITVER=$(git describe --tags)
PREVVER=$(git describe --tags --abbrev=0 ${GITVER}~1)
git log --oneline ${PREVVER}..${GITVER} > gittaglogs.txt
Expand Down

0 comments on commit 6621e7c

Please sign in to comment.