Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sgarciac committed Jun 20, 2022
1 parent 2594f24 commit f406c81
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ jobs:
echo "::set-output name=TAG_NAME::$(cat main.go|grep app.Version|grep -Eo '[0-9.]{2,100}')"
id: version

- uses: actions-ecosystem/action-push-tag@v1
with:
tag: ${{ steps.version.outputs.TAG_NAME }}

- name: Tag
run: |
tag=${{ steps.version.outputs.TAG_NAME }}
message='Release ${{ steps.version.outputs.TAG_NAME }}'
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git tag -a "${tag}" -m "${message}"
git push origin "${tag}"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit f406c81

Please sign in to comment.