Skip to content

Commit 1a7ec08

Browse files
committed
skip publishing if it is dependabot
1 parent 609414b commit 1a7ec08

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,23 @@ jobs:
8080
name: test-results-${{ matrix.os }}
8181
path: '*/build/reports'
8282

83-
publish:
84-
if: contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT') && github.actor == 'hauner'
83+
check-publish:
8584
needs: [version, test]
85+
name: check publish
86+
87+
runs-on: ubuntu-latest
88+
env:
89+
IS_ME: ${{ github.actor == 'hauner' }}
90+
IS_DEPENDABOT: ${{ github.actor == 'dependabot[bot]' }}
91+
IS_SNAPSHOT: ${{ contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT') }}
92+
93+
if: IS_ME && IS_SNAPSHOT && !IS_DEPENDABOT
94+
95+
steps:
96+
- run: echo "should publish ..."
97+
98+
publish:
99+
needs: [check-publish]
86100
name: publish snapshot
87101

88102
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)