Skip to content

Commit ae0b9d3

Browse files
committed
do not run publish with dependabot checks
1 parent ba6532f commit ae0b9d3

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,17 @@ jobs:
7676
name: test-results-${{ matrix.os }}
7777
path: '*/build/reports'
7878

79+
check-publish:
80+
needs: [test]
81+
name: check publish
82+
83+
runs-on: ubuntu-latest
84+
if: >-
85+
github.actor != 'dependabot[bot]' &&
86+
github.actor == 'hauner' && contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT')
87+
7988
publish:
80-
if: contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT') && github.actor == 'hauner'
81-
needs: [version, test]
89+
needs: [check-publish]
8290
name: publish snapshot
8391

8492
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)