From 03f2501288db0e7a7b2a682a5c423f50213b5af3 Mon Sep 17 00:00:00 2001 From: Toni Tauro Date: Wed, 16 Feb 2022 01:35:32 +0100 Subject: [PATCH] fix(autotag): use go-semantic-release #36 Signed-off-by: Toni Tauro --- .github/workflows/autotag.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/autotag.yaml b/.github/workflows/autotag.yaml index 12661f0..afddaec 100644 --- a/.github/workflows/autotag.yaml +++ b/.github/workflows/autotag.yaml @@ -4,20 +4,17 @@ on: branches: - master jobs: - build: + release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Bump version and push tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.0 + - name: Checkout + uses: actions/checkout@v2 with: - github_token: ${{ secrets.PAT }} - - name: Create a GitHub release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.PAT }} + fetch-depth: 0 + + - name: Run go-semantic-release + id: semrel + uses: go-semantic-release/action@v1.15 with: - tag_name: ${{ steps.tag_version.outputs.new_tag }} - release_name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} + github-token: ${{ secrets.PAT }} + allow-initial-development-versions: true