From 6c619774a1ab21badbba383fadd1a8d977c2378b Mon Sep 17 00:00:00 2001 From: henrycunh Date: Wed, 26 Apr 2023 09:02:55 -0300 Subject: [PATCH] fix(ci): correct artifact with the release version --- .github/workflows/release-production.yml | 8 ++------ .github/workflows/release-staging.yml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index bcf4cb7..69fa978 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -37,7 +37,7 @@ jobs: # Create a artifact with the release version, the name is the commit hash run: | mkdir -p artifacts - echo "${{ steps.release.outputs.release-version }}" > artifacts/${{ steps.script.outputs.ref }}.txt + echo "${{ steps.release.outputs.next-version }}" > artifacts/${{ github.ref }}.txt - name: Upload release artifacts uses: actions/upload-artifact@v2 @@ -61,8 +61,6 @@ jobs: uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3 with: fetch-depth: 0 - ref: ${{ steps.script.outputs.ref }} - repository: ${{ steps.script.outputs.repo }} - name: Deploy to Vercel id: deploy @@ -100,8 +98,6 @@ jobs: uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3 with: fetch-depth: 0 - ref: ${{ steps.script.outputs.ref }} - repository: ${{ steps.script.outputs.repo }} - name: Get release artifacts uses: actions/download-artifact@v2 @@ -112,7 +108,7 @@ jobs: - name: Read release version # and set as a output id: release run: | - echo "::set-output name=release-version::$(cat artifacts/${{ steps.script.outputs.ref }}.txt)" + echo "::set-output name=release-version::$(cat artifacts/${{ github.ref }}.txt)" - name: Deta Space Deployment uses: henrycunh/space-deployment-github-action@05e4e73d6801abed32a3580c8e794ea790fab827 diff --git a/.github/workflows/release-staging.yml b/.github/workflows/release-staging.yml index ef3a90d..ab53591 100644 --- a/.github/workflows/release-staging.yml +++ b/.github/workflows/release-staging.yml @@ -38,7 +38,7 @@ jobs: # Create a artifact with the release version, the name is the commit hash run: | mkdir -p artifacts - echo "${{ steps.release.outputs.release-version }}" > artifacts/${{ steps.script.outputs.ref }}.txt + echo "${{ steps.release.outputs.next-version }}" > artifacts/${{ github.ref }}.txt - name: Upload release artifacts uses: actions/upload-artifact@v2 @@ -62,8 +62,6 @@ jobs: uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3 with: fetch-depth: 0 - ref: ${{ steps.script.outputs.ref }} - repository: ${{ steps.script.outputs.repo }} - name: Deploy to Vercel id: deploy @@ -97,8 +95,6 @@ jobs: uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3 with: fetch-depth: 0 - ref: ${{ steps.script.outputs.ref }} - repository: ${{ steps.script.outputs.repo }} - name: Get release artifacts uses: actions/download-artifact@v2 @@ -109,7 +105,7 @@ jobs: - name: Read release version # and set as a output id: release run: | - echo "::set-output name=release-version::$(cat artifacts/${{ steps.script.outputs.ref }}.txt)" + echo "::set-output name=release-version::$(cat artifacts/${{ github.ref }}.txt)" - name: Deta Space Deployment uses: henrycunh/space-deployment-github-action@05e4e73d6801abed32a3580c8e794ea790fab827