Skip to content

Commit

Permalink
correct the condition for running upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ZheSun88 authored Aug 28, 2024
1 parent 5d5eb98 commit 2c36f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,15 @@ jobs:
**/target/dependencies.html
if-no-files-found: error
retention-days: 60
- if: ${{ github.event_name == 'release' }}
- if: ${{ always() && github.event.release.tag_name }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: vaadin-platform-sbom/target/bom-vaadin.json
asset_name: "Software.Bill.Of.Materials.json"
tag: ${{ github.event.inputs.version || github.event.release.tag_name }}
overwrite: true
- if: ${{ github.event_name == 'release' }}
- if: ${{ always() && github.event.release.tag_name }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2c36f66

Please sign in to comment.