Skip to content

Commit 48b1029

Browse files
committed
ci: backport changes in main
1 parent ca8a476 commit 48b1029

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/publish.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ jobs:
1919
id-token: write
2020
contents: read
2121
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@v4
24-
2522
- name: Get GH app token
2623
id: gh-app-token
2724
uses: cloudbeds/composite-actions/gh-app-token@v2
25+
with:
26+
app_id: 391670
27+
aws_role_arn: arn:aws:iam::048781935247:role/GH-APP-OIDC-CBMyFrontDesk
28+
aws_ssm_param_name: /github/app/CBMyFrontDesk/private-key
29+
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
with:
33+
token: ${{ steps.gh-app-token.outputs.github-token }}
2834

2935
- name: Get API docs
3036
env:
@@ -37,9 +43,9 @@ jobs:
3743
- name: Get next version
3844
id: get_next_version
3945
run: |
40-
if [ -n "${{ github.event.inputs.version }}" ]; then
41-
echo "next_version=${{ github.event.inputs.version }}" >> $GITHUB_ENV
42-
echo "Version provided: ${{ github.event.inputs.version }}"
46+
if [ -n "${{ inputs.version }}" ]; then
47+
echo "next_version=${{ inputs.version }}" >> $GITHUB_ENV
48+
echo "Version provided: ${{ inputs.version }}"
4349
else
4450
current_version=$(cat VERSION)
4551
echo "Current version: $current_version"
@@ -71,11 +77,15 @@ jobs:
7177
run: |
7278
java -jar openapi-generator-cli.jar generate -c openapitools.json
7379
74-
- name: Update repository with new version
75-
if: github.event.inputs.version == ''
80+
- name: Git Setup
81+
if: inputs.version == ''
7682
run: |
7783
git config --global user.name "github-actions"
7884
git config --global user.email "[email protected]"
85+
86+
- name: Update repository with new version
87+
if: inputs.version == ''
88+
run: |
7989
git add VERSION openapitools.json $(cat PACKAGE) README.md .openapi-generator/FILES
8090
git commit -m "Bump version to ${{ env.next_version }}"
8191
git push
@@ -111,7 +121,7 @@ jobs:
111121

112122
- name: Create Release
113123
id: create_release
114-
if: github.event.inputs.version == ''
124+
if: inputs.version == ''
115125
env:
116126
GITHUB_TOKEN: ${{ github.token }}
117127
run: >-

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ wheels/
99
# Virtual environments
1010
.venv
1111
.idea
12+
13+
public_accessa/
14+
*.jar

0 commit comments

Comments
 (0)