Skip to content

Commit

Permalink
Merge pull request #6 from oliver-hohn/create-release
Browse files Browse the repository at this point in the history
Correctly tag releases with dates and build number
  • Loading branch information
oliver-hohn authored Dec 24, 2020
2 parents c94a284 + 0a32234 commit 76de8dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:

- name: Get current date time
id: current_datetime
run: echo "now=$(date +'%Y.%m.%d')" >> $GITHUB_ENV
run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: ${{steps.current_datetime.outputs.date}}.${{env.GITHUB_RUN_NUMBER}}
RELEASE_NAME: ${{env.NOW}}.${{github.run_number }}
with:
tag_name: ${{ env.RELEASE_NAME }}
release_name: Release ${{ env.RELEASE_NAME }}
Expand Down

0 comments on commit 76de8dd

Please sign in to comment.