File tree Expand file tree Collapse file tree 1 file changed +5
-19
lines changed
Expand file tree Collapse file tree 1 file changed +5
-19
lines changed Original file line number Diff line number Diff line change 1515
1616jobs :
1717
18- version :
18+ check-publish :
1919 name : check version
2020 runs-on : ubuntu-latest
2121 outputs :
2222 BUILD_VERSION : ${{ env.BUILD_VERSION }}
2323 BUILD_SNAPSHOT : ${{ env.BUILD_SNAPSHOT }}
24+ BUILD_PUBLISH : ${{ env.BUILD_PUBLISH }}
2425
2526 steps :
2627 - name : get version
@@ -30,30 +31,14 @@ jobs:
3031 version-file : ' gradle/libs.versions.toml'
3132 version-path : ' versions.processor'
3233
33- - name : set output version
34+ - name : set version outputs
3435 shell : bash
3536 run : |
3637 echo BUILD_VERSION="${{steps.get-version.outputs.version}}" >> $GITHUB_ENV
3738 echo BUILD_SNAPSHOT="${{steps.get-version.outputs.snapshot}}" >> $GITHUB_ENV
39+ echo BUILD_PUBLISH="${{steps.get-version.outputs.publish}}" >> $GITHUB_ENV
3840 cat $GITHUB_ENV
3941
40- check-publish :
41- needs : [version]
42- name : check publish
43-
44- runs-on : ubuntu-latest
45- if : >-
46- github.actor != 'dependabot[bot]' &&
47- github.actor == 'hauner' &&
48- needs.version.outputs.BUILD_SNAPSHOT == 'true'
49- # contains(needs.version.outputs.BUILD_VERSION, 'SNAPSHOT')
50-
51- steps :
52- - run : |
53- echo "should publish ..."
54- echo version BUILD_VERSION ${{needs.version.outputs.BUILD_VERSION}}
55- echo version BUILD_SNAPSHOT ${{needs.version.outputs.BUILD_SNAPSHOT}}
56-
5742 test :
5843 name : test
5944
9479 name : publish snapshot
9580
9681 runs-on : ubuntu-latest
82+ if : needs.check-publish.outputs.BUILD_PUBLISH == 'true'
9783
9884 steps :
9985 - name : checkout
You can’t perform that action at this time.
0 commit comments