Skip to content

Commit dd8c4ae

Browse files
committed
Do not publish from Dependabot branches
1 parent 5e6815f commit dd8c4ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
- run: "./gradlew testEndToEndSlow"
2525
- run: "./gradlew cyclonedxBom --no-configuration-cache"
2626
- run: "./gradlew publish"
27-
if: ${{ !contains(github.ref, '/') }}
27+
if: ${{ !contains(github.ref, 'dependabot') }}
2828
- uses: DependencyTrack/gh-upload-sbom@v3
29-
if: ${{ !contains(github.ref, '/') }}
29+
if: ${{ !contains(github.ref, 'dependabot') }}
3030
with:
3131
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
3232
bomFilename: "gradle/aggregation/build/reports/sbom/bom.xml"
3333
serverHostname: ${{ secrets.DEPENDENCYTRACK_URL }}
3434
projectName: "gradle-project-setup-howto"
35-
projectVersion: "main"
35+
projectVersion: ${{ github.ref }}
3636
autoCreate: true

0 commit comments

Comments
 (0)