forked from helm/helm-mapkubeapis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating the workflow to add version.
Signed-off-by: Robert Sirchia <[email protected]>
- Loading branch information
1 parent
7007730
commit 7b3a5c3
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,14 @@ on: | |
permissions: read-all | ||
|
||
jobs: | ||
# ======================================================================================================================================== | ||
# Prerequesite: Create a .slsa-goreleaser.yml in the root directory of your project. | ||
# See format in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/go/README.md#configuration-file | ||
#========================================================================================================================================= | ||
args: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.ldflags.outputs.version }} | ||
steps: | ||
- id: ldflags | ||
run: | | ||
echo "version=$(git describe --tags --always --dirty | cut -c2-)" >> "$GITHUB_OUTPUT" | ||
build: | ||
permissions: | ||
id-token: write # To sign. | ||
|
@@ -19,6 +23,4 @@ jobs: | |
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected] | ||
with: | ||
go-version: 1.22 | ||
# ============================================================================================================= | ||
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects | ||
# ============================================================================================================= | ||
evaluated-envs: "VERSION:${{needs.args.outputs.version}}" |