From 1f64e0bb06829cabae886127bd580e7df21fd16a Mon Sep 17 00:00:00 2001 From: Mehdi Rashadatjou Date: Fri, 11 Aug 2023 16:56:54 +0200 Subject: [PATCH] fix: Update release-deploy.yml --- .github/workflows/release-deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-deploy.yml b/.github/workflows/release-deploy.yml index b2dffc4..e17c3ac 100644 --- a/.github/workflows/release-deploy.yml +++ b/.github/workflows/release-deploy.yml @@ -16,10 +16,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Get current tag - run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV + - name: Extract Tag Name + id: tag_name + run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + if: github.event_name == 'release' - name: Update Package.swift with release ref - run: ./Scripts/UpdatePackageManifest.bash ${{ GIT_TAG }} + run: ./Scripts/UpdatePackageManifest.bash $TAG_NAME if: github.event_name == 'release' - name: Update Package.swift with new version run: ./Scripts/UpdatePackageManifest.bash ${{ github.event.inputs.newVersion }}