-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (38 loc) · 1.27 KB
/
task.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Push java-common-libs task
on:
push:
branches:
- TASK-*
jobs:
build:
uses: ./.github/workflows/build-java-app-workflow.yml
test:
uses: ./.github/workflows/test-analysis.yml
needs: build
secrets: inherit
with:
report_context: development
report_dir: ${{ github.ref_name }}/java-common-libs/${{ github.sha }}
deploy-maven:
name: Deploy in maven only for renamed versions
uses: ./.github/workflows/deploy-maven-repository-workflow.yml
needs: [ build, test ]
if: contains( needs.build.outputs.version ,'TASK')
secrets: inherit
#The following jobs are to see that the previous 'if' doesn't fail and that the maven deploy is executed because it is true
snapshot-version:
name: Check SNAPSHOT version
needs: [ build, test ]
if: contains(needs.build.outputs.version ,'SNAPSHOT')
runs-on: ubuntu-22.04
steps:
- name: test-version-from-check
run: echo "Project version is " ${{ needs.build.outputs.version }}
task-version:
name: Check TASK version
needs: [ build, test ]
if: contains(needs.build.outputs.version ,'TASK')
runs-on: ubuntu-22.04
steps:
- name: test-version-from-check
run: echo "Project version is " ${{ needs.build.outputs.version }}