From 69f5e60521e7ed5088bd9d4b4f7bffbbdd99bd6e Mon Sep 17 00:00:00 2001 From: yaswanth-deriv Date: Fri, 12 Jan 2024 11:09:53 +0400 Subject: [PATCH] refactor: to fix version issue --- .github/actions/versioning/action.yml | 8 -------- .github/workflows/release-production.yml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/actions/versioning/action.yml b/.github/actions/versioning/action.yml index 3ee10cde..7c4af80d 100644 --- a/.github/actions/versioning/action.yml +++ b/.github/actions/versioning/action.yml @@ -4,9 +4,6 @@ inputs: RELEASE_TYPE: description: Release Type required: false -outputs: - version: - description: Version runs: using: composite @@ -14,8 +11,3 @@ runs: - name: Tag build run: echo "${GITHUB_REF#refs/heads/} $(date -u +'%Y-%m-%dT%H:%M:%SZ')" > _site/version shell: bash - - name: Set Version - id: set_version - run: | - 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..070d9bdd 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -27,7 +27,7 @@ jobs: release_type: production - name: Extract version id: extract_version - run: echo "RELEASE_VERSION=${version}" >> $GITHUB_OUTPUT + run: echo "RELEASE_VERSION=$(cat _site/version)" >> $GITHUB_OUTPUT - name: Publish to Cloudflare Pages Production uses: "./.github/actions/publish_to_pages_production" with: