From f8dabf290dd5b50264aa2e5829406d5acb03ddeb Mon Sep 17 00:00:00 2001 From: Mehmet Can Ay Date: Fri, 18 Oct 2024 13:16:14 +0200 Subject: [PATCH] Update API and Angular app version during release --- .github/workflows/docker-publish.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index b2882a5..2b83a65 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -14,6 +14,13 @@ jobs: - name: Get Version Tag id: version run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_OUTPUT" + - name: Update API Version + run: | + sed -i "s/version=\"[^\"]*\"/version=\"${{ steps.version.outputs.VERSION }}\"/" api/routes.py + - name: Update Angular App Version + run: | + cd client + npm --no-git-tag-version version from-git - name: Docker Login uses: docker/login-action@v1 with: