Skip to content

Commit 3f9065b

Browse files
committed
github.ref -> github.ref_name
1 parent 65cf821 commit 3f9065b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
- run: "./gradlew check"
2626
- run: "./gradlew cyclonedxBom --no-configuration-cache"
2727
- run: "./gradlew publish"
28-
if: ${{ !contains(github.ref, 'dependabot') }}
28+
if: ${{ !contains(github.ref_name, '/') }}
2929
- uses: actions/upload-artifact@v4
3030
if: always()
3131
with:
3232
name: reports
3333
path: gradle/aggregation/build/reports
3434
- uses: DependencyTrack/gh-upload-sbom@v3
35-
if: ${{ !contains(github.ref, 'dependabot') }}
35+
if: ${{ !contains(github.ref_name, '/') }}
3636
with:
3737
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
3838
bomFilename: "gradle/aggregation/build/reports/sbom/bom.xml"
3939
serverHostname: ${{ secrets.DEPENDENCYTRACK_URL }}
4040
projectName: "gradle-project-setup-howto"
41-
projectVersion: ${{ github.ref }}
41+
projectVersion: ${{ github.ref_name }}
4242
autoCreate: true

0 commit comments

Comments
 (0)