Skip to content

Commit 2301658

Browse files
authored
fix: add separate commits for the automation workflow (#217)
1 parent 3260521 commit 2301658

File tree

6 files changed

+102
-32
lines changed

6 files changed

+102
-32
lines changed

.github/workflows/autoupdate-prod.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ jobs:
1616
- name: Fetch changes
1717
working-directory: ./tools
1818
run: make fetch_openapi
19+
- name: Commit OpenAPI changes
20+
run: |
21+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
22+
git config --global user.name "github-actions[bot]"
23+
git add .
24+
git commit -m "fix: update OpenAPI spec"
1925
- name: Run generation
2026
working-directory: ./tools
2127
run: |
@@ -29,11 +35,14 @@ jobs:
2935
- name: Run docs generation
3036
if: steps.verify-changed-files.outputs.files_changed == 'true'
3137
run: make gen-docs
38+
- name: Commit Generator Changes
39+
run: |
40+
git add . && git commit -m "fix: Generated SDK source code and docs"
3241
- name: Release updates
3342
if: steps.verify-changed-files.outputs.files_changed == 'true'
3443
working-directory: ./tools
35-
env:
36-
GIT_BASE_REF: origin/main
44+
env:
45+
GIT_BASE_REF: ${{ github.sha }}
3746
run: |
3847
make new-release
3948
- uses: peter-evans/create-pull-request@v5
@@ -42,7 +51,7 @@ jobs:
4251
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_GITHUB_TOKEN }}
4352
with:
4453
title: "APIBot: SDK update based on recent changes in Atlas API"
45-
commit-message: "Automated openapi client update"
54+
commit-message: "fix: required version bumps for Atlas SDK release"
4655
delete-branch: true
4756
branch: api-bot-update
4857
body: |

0 commit comments

Comments
 (0)