Skip to content

Commit 1b79832

Browse files
committed
build: skip publish when running dependabot checks
1 parent 88efdfb commit 1b79832

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,20 @@ jobs:
4848
name: test-results-${{ matrix.os }}
4949
path: build/reports
5050

51-
publish:
52-
if: ${{ github.actor == 'hauner' }}
53-
51+
check-publish:
5452
needs: [test]
53+
name: check publish
54+
55+
runs-on: ubuntu-latest
56+
if: >-
57+
github.actor != 'dependabot[bot]' &&
58+
github.actor == 'hauner' && contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT')
59+
60+
steps:
61+
- run: echo "should publish ..."
62+
63+
publish:
64+
needs: [check-publish]
5565
name: publish snapshot
5666

5767
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)