Skip to content

Commit 7365263

Browse files
committed
Remove "v" prefix from OpenAPI version
1 parent 4a4fae7 commit 7365263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838
- name: Update __version__.py
3939
if: startsWith(github.ref, 'refs/tags/v')
40-
run: echo '__version__ = "${{ github.ref_name }}"' > chris_backend/__version__.py
40+
run: echo '__version__ = "${GITHUB_REF_NAME:1}"' > chris_backend/__version__.py
4141
- name: Docker meta
4242
id: meta
4343
uses: docker/metadata-action@v5
@@ -94,7 +94,7 @@ jobs:
9494
- uses: actions/checkout@v4
9595
- name: Update __version__.py
9696
if: startsWith(github.ref, 'refs/tags/v')
97-
run: echo '__version__ = "${{ github.ref_name }}"' > chris_backend/__version__.py
97+
run: echo '__version__ = "${GITHUB_REF_NAME:1}"' > chris_backend/__version__.py
9898
- run: just prefer docker
9999
- run: just build
100100
- name: Generate OpenAPI schema (correct)

0 commit comments

Comments
 (0)