@@ -37,25 +37,30 @@ jobs:
3737 run : ./gradlew check --no-daemon
3838
3939 - name : Build coverage report
40- if : github.ref == 'refs/heads/dw3 ' && github.event_name != 'pull_request'
40+ if : github.ref == 'refs/heads/dw-3 ' && github.event_name != 'pull_request'
4141 run : ./gradlew jacocoTestReport --no-daemon
4242
4343 - uses : codecov/codecov-action@v4
44- if : github.ref == 'refs/heads/dw3 ' && github.event_name != 'pull_request'
44+ if : github.ref == 'refs/heads/dw-3 ' && github.event_name != 'pull_request'
4545 with :
4646 files : build/reports/jacoco/test/jacocoTestReport.xml
4747 flags : LINUX
4848 fail_ci_if_error : true
4949 token : ${{ secrets.CODECOV_TOKEN }}
5050
51- # publish snapshot after successful tests
51+ - name : Extract Project version
52+ id : project
53+ run : echo "version=$(./gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')" >> $GITHUB_OUTPUT
54+
55+
56+ # publish snapshot after successful tests (only for snapshots)
5257 publish :
53- if : github.ref == 'refs/heads/dw3 ' && github.event_name != 'pull_request'
58+ if : github.ref == 'refs/heads/dw-3 ' && github.event_name != 'pull_request' && endsWith(steps.project.outputs.version, '-SNAPSHOT')
5459 needs : build
5560 uses : ./.github/workflows/publish-snapshot.yml
5661
57- # run examples with published snapshot
62+ # run examples with published snapshot (only for snapshots)
5863 examples :
59- if : github.ref == 'refs/heads/dw3 ' && github.event_name != 'pull_request'
64+ if : github.ref == 'refs/heads/dw-3 ' && github.event_name != 'pull_request' && endsWith(steps.project.outputs.version, '-SNAPSHOT')
6065 needs : publish
6166 uses : ./.github/workflows/examples-CI.yml
0 commit comments