Skip to content

Commit a390db3

Browse files
authored
CI: Update OpenAPI Release Workflow (#31)
1 parent 8563191 commit a390db3

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@ jobs:
2424
- name: Checkout OpenAPI
2525
uses: actions/checkout@v4
2626

27-
- name: Generate spec
27+
- name: Generate Spec
2828
uses: ./.github/actions/generate-spec
2929
with:
3030
pro-ref: v${{ env.release }}
3131
pro-token: ${{ secrets.PRO_GITHUB_TOKEN }}
3232

33-
- name: "Commit release version"
34-
# We set the openapi folder as a DEPENDENCY_FILE merely to have it added to the release commit
33+
- name: Commit Release Version
34+
env:
35+
DEPENDENCY_FILE: "openapi/"
36+
RELEASE_VERSION: ${{ env.release }}
3537
run: |
36-
DEPENDENCY_FILE="openapi/" bin/release-helper.sh git-commit-release ${{ env.release }}
37-
git push --follow-tags
38+
git add "${DEPENDENCY_FILE}"
39+
git commit --allow-empty -m "Release: v${RELEASE_VERSION}"
40+
git tag -a "v${RELEASE_VERSION}" -m "Release: v${RELEASE_VERSION}"
41+
git push --follow-tags
3842
39-
- name: "Show git modifications"
43+
- name: Show Git Modifications
4044
run: |
4145
git log --oneline -n 2
4246
git show HEAD

0 commit comments

Comments
 (0)