We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 609414b commit 1a7ec08Copy full SHA for 1a7ec08
.github/workflows/build.yaml
@@ -80,9 +80,23 @@ jobs:
80
name: test-results-${{ matrix.os }}
81
path: '*/build/reports'
82
83
- publish:
84
- if: contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT') && github.actor == 'hauner'
+ check-publish:
85
needs: [version, test]
+ 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]
100
name: publish snapshot
101
102
runs-on: ubuntu-latest
0 commit comments