Skip to content

Commit 395559d

Browse files
committed
ci: check publish
1 parent 394108e commit 395559d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: check-publish
2+
description: check if it should publish the build
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: check publish
7+
id: check-publish
8+
shell: bash
9+
10+
run: |
11+
echo "should publish ..."
12+
echo version BUILD_VERSION ${{needs.version.outputs.BUILD_VERSION}}
13+
echo version-test BUILD_VERSION ${{needs.version-test.outputs.BUILD_VERSION}}
14+
15+
16+
check-publish:
17+
needs: [version, test]
18+
name: check publish
19+
20+
runs-on: ubuntu-latest
21+
if: >-
22+
github.actor != 'dependabot[bot]' &&
23+
github.actor == 'hauner' && contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT')
24+
25+
steps:
26+
- run: |
27+
echo "should publish ..."
28+
echo version BUILD_VERSION ${{needs.version.outputs.BUILD_VERSION}}
29+
echo version-test BUILD_VERSION ${{needs.version-test.outputs.BUILD_VERSION}}

0 commit comments

Comments
 (0)