From 6a9653db7863be4cd2a9764bbe34820cef2b2d50 Mon Sep 17 00:00:00 2001 From: Taylor Ludwig Date: Fri, 29 Aug 2025 11:56:13 -0700 Subject: [PATCH 1/2] update names to make it more clear if its a snapshot or release run --- .github/workflows/go-build-release.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/go-build-release.yml b/.github/workflows/go-build-release.yml index 23a2657..26635c5 100644 --- a/.github/workflows/go-build-release.yml +++ b/.github/workflows/go-build-release.yml @@ -1,4 +1,5 @@ -name: Go Build and Release with GoReleaser +name: GoReleaser +run-name: GoReleaser ${{ (inputs.snapshot == 'true' || (inputs.snapshot != 'false' && !startsWith(github.ref, 'refs/tags/v'))) && 'Snapshot' || 'Release' }} on: workflow_call: @@ -61,7 +62,8 @@ on: permissions: write-all # Necessary for the generate-build-provenance action with containers jobs: - build_and_release: + goreleaser: + name: GoReleaser ${{ (inputs.snapshot == 'true' || (inputs.snapshot != 'false' && !startsWith(github.ref, 'refs/tags/v'))) && 'Snapshot' || 'Release' }} runs-on: ubuntu-latest steps: - name: Set up Go @@ -126,14 +128,14 @@ jobs: fi fi - - name: Release with GoReleaser + - name: GoReleaser ${{ inputs.goreleaser-args }} ${{ steps.snapshot_flags.outputs.flags }} + id: goreleaser uses: goreleaser/goreleaser-action@v6 env: GITHUB_TOKEN: ${{ github.token }} with: version: ${{ inputs.goreleaser-version }} args: ${{ inputs.goreleaser-args }} ${{ steps.snapshot_flags.outputs.flags }} - id: goreleaser - name: Process GoReleaser output id: process_goreleaser_output From b27bb94f7758aa8cd4487f19b922ca090c6e866e Mon Sep 17 00:00:00 2001 From: Taylor Ludwig Date: Tue, 2 Sep 2025 15:22:50 -0700 Subject: [PATCH 2/2] update readme for updates --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index eb05dc3..3379d99 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Use major version tags for stability: # For reusable workflows jobs: release: - uses: OpenCHAMI/github-actions/.github/workflows/go-build-release.yml@v3.2 + uses: OpenCHAMI/github-actions/.github/workflows/go-build-release.yml@v3.3 ``` Pin a commit SHA internally for maximum supply‑chain safety if desired. @@ -38,7 +38,8 @@ Standardized GoReleaser workflow for building and releasing Go applications with **Usage:** ```yaml -name: Release with goreleaser +name: GoReleaser +run-name: GoReleaser ${{ startsWith(github.ref, 'refs/tags/v') && 'Release' || 'Snapshot' }} on: workflow_dispatch: @@ -48,8 +49,9 @@ on: - v* jobs: - release: - uses: OpenCHAMI/github-actions/.github/workflows/go-build-release.yml@v3.2 + goreleaser: + name: GoReleaser ${{ startsWith(github.ref, 'refs/tags/v') && 'Release' || 'Snapshot' }} + uses: OpenCHAMI/github-actions/.github/workflows/go-build-release.yml@v3.3 with: pre-build-commands: | go install github.com/swaggo/swag/cmd/swag@latest