From 81f83983ada04915fbe3f3725af9cb1d2e0425c9 Mon Sep 17 00:00:00 2001 From: yaswanth-deriv Date: Thu, 11 Jan 2024 10:47:44 +0400 Subject: [PATCH] refactor: to fix version issue --- .github/actions/versioning/action.yml | 2 +- .github/workflows/release-production.yml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/actions/versioning/action.yml b/.github/actions/versioning/action.yml index 3ee10cde..b61520b0 100644 --- a/.github/actions/versioning/action.yml +++ b/.github/actions/versioning/action.yml @@ -17,5 +17,5 @@ runs: - name: Set Version id: set_version run: | - echo "version=${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT + echo "version=${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT" shell: bash diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index f5d2c592..31b1607f 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -8,7 +8,7 @@ jobs: name: Build, Test and Publish to Production runs-on: ubuntu-latest outputs: - RELEASE_VERSION: ${{ steps.extract_version.outputs.RELEASE_VERSION }} + RELEASE_VERSION: ${{ steps.extract_version.outputs.version }} steps: - name: Checkout uses: actions/checkout@v4 @@ -22,12 +22,10 @@ jobs: - name: invalidate master cache uses: ./.github/actions/invalidate_master_cache - name: Versioning + id: extract_version uses: ./.github/actions/versioning with: release_type: production - - name: Extract version - id: extract_version - run: echo "RELEASE_VERSION=${version}" >> $GITHUB_OUTPUT - name: Publish to Cloudflare Pages Production uses: "./.github/actions/publish_to_pages_production" with: