Skip to content

Commit

Permalink
Trying a find command to get the first non-null Digest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlovelltroy committed Jan 17, 2024
1 parent 1610989 commit ccc2dfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ jobs:
with:
version: latest
args: release --clean
id: goreleaser
- name: generate build provenance
uses: github-early-access/generate-build-provenance@main
with:
subject-name: ghcr.io/openchami/ochami-init
subject-digest: ${{ steps.push.outputs.digest }}
subject-digest: ${{ fromJson(steps.goreleaser.outputs.artifacts).find(artifact => artifact.extra.Digest != null).extra.Digest }}
push-to-registry: true

0 comments on commit ccc2dfa

Please sign in to comment.