Skip to content

Commit 7739ad9

Browse files
authored
Update nuget-publish.yml
1 parent beac4fa commit 7739ad9

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,14 @@ jobs:
6767

6868
# Set step output
6969
echo "version=$VERSION" >> $GITHUB_OUTPUT
70-
71-
- name: Commit SBOM
72-
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
run: |
75-
VERSION=${{ steps.generate_sbom.outputs.version }}
76-
echo "Committing SBOM for version: $VERSION"
77-
78-
git config user.name "github-actions[bot]"
79-
git config user.email "github-actions[bot]@users.noreply.github.com"
80-
git add sbom/$VERSION/*.json
81-
git commit -m "Add SBOM for version $VERSION" || echo "No changes to commit"
82-
git push origin HEAD
83-
84-
8570

71+
- name: Upload SBOM artifact
72+
uses: actions/upload-artifact@v3
73+
with:
74+
name: SBOM-${{ steps.generate_sbom.outputs.version }}
75+
path: sbom/${{ steps.generate_sbom.outputs.version }}/bom.json
76+
77+
8678
- name: Pack
8779
if: matrix.dotnet-version == '9.x'
8880
run: dotnet pack --configuration Release --no-build --output ./nupkg

0 commit comments

Comments
 (0)