Skip to content

Commit

Permalink
Merge pull request #9 from odanado/main
Browse files Browse the repository at this point in the history
Release new version: v0.2.0
  • Loading branch information
odanado authored Nov 17, 2024
2 parents 00dd33d + fcc2553 commit 29083e8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: ${{needs.check-label.outputs.level }}
level: ${{ needs.check-label.outputs.level }}

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- release/cli

jobs:
get-release-level:
get-new-version:
runs-on: ubuntu-latest
outputs:
value: ${{ steps.release-label.outputs.level }}
value: ${{ steps.bump-semver.outputs.new_version }}
steps:
- uses: actions/checkout@v4

Expand All @@ -24,9 +24,18 @@ jobs:
labels: ${{ steps.get-merged-pull-request.outputs.labels }}
label_prefix: "bump:"

- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag

- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: ${{ steps.release-label.outputs.level }}

goreleaser:
runs-on: ubuntu-latest
needs: [get-release-level]
needs: [get-new-version]
permissions:
contents: write
steps:
Expand All @@ -42,7 +51,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: ${{ needs.get-release-level.outputs.value }}
version: ${{ needs.get-new-version.outputs.value }}
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 29083e8

Please sign in to comment.