From cca78c27ac9e2b6545debf2ecae9df930fd3461c Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Mon, 9 Sep 2024 15:01:11 -0400 Subject: [PATCH] fix: release action scripts Signed-off-by: Khosrow Moossavi --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f263724..d6bb938 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,11 @@ jobs: ref: main fetch-depth: 0 + - name: Get variables + run: | + release_version="${{ inputs.version }}" + echo "release_version=${release_version//v/}" >> "$GITHUB_ENV" + - name: Login to Docker uses: docker/login-action@v3 if: env.REGISTRY_USERNAME != '' @@ -89,6 +94,11 @@ jobs: fetch-depth: 0 token: ${{ secrets.COMMITTER_TOKEN }} + - name: Get variables + run: | + release_version="${{ inputs.version }}" + echo "release_version=${release_version//v/}" >> "$GITHUB_ENV" + - name: Cut v${{ env.release_version }} Release run: | git config --global user.name terraform-docs-bot