Skip to content

Commit e80b89a

Browse files
committed
ci: split git setup and git commit && push
The git setup is required because github doesn't do it for us. If we could avoid or skip this we would do it. The commit and push are now in their own step so that we can debug and troubleshoot properly.
1 parent 232f57e commit e80b89a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,15 @@ jobs:
7171
run: |
7272
java -jar openapi-generator-cli.jar generate -c openapitools.json
7373
74-
- name: Update repository with new version
74+
- name: Git Setup
7575
if: inputs.version == ''
7676
run: |
7777
git config --global user.name "github-actions"
7878
git config --global user.email "[email protected]"
79+
80+
- name: Update repository with new version
81+
if: inputs.version == ''
82+
run: |
7983
git add VERSION openapitools.json $(cat PACKAGE) README.md .openapi-generator/FILES
8084
git commit -m "Bump version to ${{ env.next_version }}"
8185
git push

0 commit comments

Comments
 (0)