This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
145 lines (145 loc) · 4.76 KB
/
ci-release.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: ci-release
on:
release:
types:
- created
jobs:
release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: release notes
run: |
TAG=${GITHUB_REF/refs\/tags\/}
npx github-release-notes release --override --tags ${TAG}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/cache@v1
env:
cache-name: m2
with:
path: ~/.m2/repository
key: ${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ env.cache-name }}-
- uses: actions/setup-java@v1
with:
java-version: 17
- name: version
run: >-
APP_SHA=$(git rev-parse --short ${GITHUB_SHA});
APP_TAG=${GITHUB_REF/refs\/tags\/}
APP_VERSION=${APP_TAG};
echo "APP_SHA=${APP_SHA}" >> ${GITHUB_ENV};
echo "APP_TAG=${APP_TAG}" >> ${GITHUB_ENV};
echo "APP_VERSION=${APP_VERSION}" >> ${GITHUB_ENV};
- name: mvn version
run: mvn --batch-mode versions:set -DgenerateBackupPoms=false -DnewVersion=${APP_VERSION}
- name: mvn deploy
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
APP_VERSION: ${{ env.APP_VERSION }}
update-dependency-in-cwa-verification-server:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-verification-server
LABEL_NAME: chore
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-quick-test-backend:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-quick-test-backend
LABEL_NAME: enhancement
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-testresult-server:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-testresult-server
LABEL_NAME: enhancement
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-dcc-server:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-dcc-server
LABEL_NAME: enhancement
TARGET_BRANCH: main
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-result-gatherer:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-result-gatherer
LABEL_NAME: enhancement
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-verification-portal:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-verification-portal
LABEL_NAME: chore
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-cwa-log-upload:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: cwa-log-upload
LABEL_NAME: enhancement
TARGET_BRANCH: master
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
update-dependency-in-business-rule-server:
needs:
- build
uses: corona-warn-app/cwa-parent/.github/workflows/update-depending-project.yml@main
with:
APP_VERSION: ${{ needs.build.outputs.APP_VERSION }}
REPO_OWNER: corona-warn-app
REPO_NAME: dgca-businessrule-service
LABEL_NAME: enhancement
TARGET_BRANCH: main
secrets:
GH_ADMIN_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}