Skip to content

Commit

Permalink
ci: remove default bump, only run goreleaser on merge of fix/feat/bre…
Browse files Browse the repository at this point in the history
…aking
  • Loading branch information
matty-rose committed Oct 4, 2021
1 parent ba65a17 commit 56ba59d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ env:
GORELEASER_VERSION: v0.180.3
CHANGELOG_FILE: /tmp/CHANGELOG.md
jobs:
release:
name: release
increment-version:
name: increment-version
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,11 +26,22 @@ jobs:
github_token: ${{ github.token }}
release_branches: main
tag_prefix: v
- name: Fetch new remote tag
run: git fetch origin "refs/tags/*:refs/tags/*"
outputs:
new_version: ${{ steps.increment-version.outputs.new_version }}
changelog: ${{ steps.increment-version.outputs.changelog }}
release:
name: release
needs: increment-version
if: needs.increment-version.outputs.new_version != ''
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: "0"
- name: Create CHANGELOG
run: |
echo "${{ steps.increment-version.outputs.changelog }}" >> ${{ env.CHANGELOG_FILE }}
echo "${{ needs.increment-version.outputs.changelog }}" >> ${{ env.CHANGELOG_FILE }}
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down

0 comments on commit 56ba59d

Please sign in to comment.