Skip to content

Commit d4518e9

Browse files
feat: Canary (#17)
* canary * canary helm * canary helm fix * beta * fix * fix * fix * canary * canary fix * canary * canary * canary * canary * fix * fix * skip * bump * bump * bump * fix * fix * fix
1 parent d63ef91 commit d4518e9

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

bump-semver/action.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ runs:
3131
var { CURRENT_VERSION, SEMVER } = process.env
3232
var versions = CURRENT_VERSION.replace('v','').split('.');
3333
34-
console.log(versions);
35-
3634
var major = parseInt(versions[0] ?? '0');
3735
var minor = parseInt(versions[1] ?? '0');
3836
var patch = parseInt((versions[2] ?? '0').split('-')[0] ?? '0');

maven-release/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ outputs:
3535
runs:
3636
using: "composite"
3737
steps:
38+
- name: Input Log
39+
run: |
40+
echo "📝 Inputs"
41+
echo "semver: ${{ inputs.semver}}"
42+
echo "beta: ${{ inputs.beta}}"
43+
echo "skip_ci: ${{ inputs.skip_ci}}"
44+
shell: bash
45+
3846
- uses: actions/checkout@v3
3947
with:
4048
ref: ${{ github.ref_name}}

maven-semver/action.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ outputs:
2929
runs:
3030
using: "composite"
3131
steps:
32+
- name: Input Log
33+
run: |
34+
echo "📝 Inputs"
35+
echo "semver: ${{ inputs.semver}}"
36+
echo "beta: ${{ inputs.beta}}"
37+
shell: bash
38+
3239
- name: Set up JDK 11
3340
uses: actions/setup-java@v1
3441
with:
@@ -77,7 +84,7 @@ runs:
7784
- id: get_app_version
7885
name: Get Version
7986
run: |
80-
echo "$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"
87+
echo "🆙 Bump App Version to $(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)"
8188
echo "version=$(mvn -f pom.xml help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
8289
shell: bash
8390

@@ -102,16 +109,20 @@ runs:
102109
if: ${{ inputs.semver != 'skip' }}
103110
shell: bash
104111
run: |
112+
echo "📑 Bump Chart Version to ${{ steps.bump_chart_version.outputs.new_version }}"
113+
105114
CHART_FILE="helm/Chart.yaml"
106115
if [[ -f "$CHART_FILE" ]]; then
107116
yq -i ".version = \"${{ steps.bump_chart_version.outputs.new_version }}\"" "$CHART_FILE"
108117
git add "$CHART_FILE"
109118
fi
110119
111120
- name: Update Stable Version Helm
112-
if: ${{ (inputs.beta != 'true') && (inputs.semver != 'skip') }}
121+
if: ${{ (inputs.beta != 'true') }}
113122
shell: bash
114123
run: |
124+
echo "🚀 Bump Stable Version to ${{ steps.get_app_version.outputs.version }}"
125+
115126
CHART_FILE="helm/Chart.yaml"
116127
if [[ -f "$CHART_FILE" ]]; then
117128
yq -i ".appVersion = \"${{ steps.get_app_version.outputs.version }}\"" "$CHART_FILE"
@@ -124,9 +135,10 @@ runs:
124135
done
125136
126137
- name: Update Canary Version Helm
127-
if: ${{ inputs.semver != 'skip' }}
128138
shell: bash
129139
run: |
140+
echo "🐤 Bump Canary Version to ${{ steps.get_app_version.outputs.version }}"
141+
130142
CHART_FILE="helm/Chart.yaml"
131143
if [[ -f "$CHART_FILE" ]]; then
132144
yq -i ".appVersion = \"${{ steps.get_app_version.outputs.version }}\"" "$CHART_FILE"
@@ -142,6 +154,8 @@ runs:
142154
if: ${{ inputs.semver != 'skip' }}
143155
shell: bash
144156
run: |
157+
echo "📑 Bump Openapi Version to ${{ steps.get_app_version.outputs.version }}"
158+
145159
for i in openapi/*.json; do
146160
[ -f "$i" ] || break
147161
cat <<< "$(jq ".info.version = \"${{ steps.get_app_version.outputs.version }}\"" "$i")" > "$i"

0 commit comments

Comments
 (0)