Skip to content

Commit

Permalink
Update cicd_manual_publish-sdk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina authored Oct 11, 2024
1 parent bdbae00 commit 78a7fc0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/cicd_manual_publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
run: |
ARTIFACT_NAME=${{ steps.sbom-generator.outputs.sbom-artifact }}
SBOM=$(find ./artifacts -name *.json)
ls ${SBOM} | grep ${ARTIFACT_NAME}
ls -R ${{ github.workspace }}/artifacts
SBOM=$(find ./artifacts -name *.json | grep ${ARTIFACT_NAME})
# ls ${SBOM} | grep ${ARTIFACT_NAME}
# ls -R ${{ github.workspace }}/artifacts
if [ -n "${SBOM}" ]; then
echo "SBOM: ${SBOM_ARTIFACT}"
echo "SBOM:"
cat ${SBOM}
# zip ${SBOM_ARTIFACT}.zip ./artifacts/${{ steps.sbom-generator.outputs.sbom-artifact }}.json
# gh release upload "${{ needs.prepare-release.outputs.release_tag }}" "./artifacts/${{ steps.sbom-generator.outputs.sbom-artifact }}.zip"
zip ${ARTIFACT_NAME}.zip ${SBOM}.json
# gh release upload "${{ needs.prepare-release.outputs.release_tag }}" "${ARTIFACT_NAME}.zip"
else
echo "SBOM artifact not found."
fi
Expand Down

0 comments on commit 78a7fc0

Please sign in to comment.