From f10e10216d8bc5bc5a8fa6cc84568c53df3e7fa3 Mon Sep 17 00:00:00 2001 From: candonov <25967713+candonov@users.noreply.github.com> Date: Sun, 2 Apr 2023 12:41:43 -0700 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c89a2a5..0a0c737 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: us-east-1 - - name: goreleaser + - id: goreleaser uses: goreleaser/goreleaser-action@v4 with: distribution: goreleaser @@ -32,16 +32,10 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Debug output file - run: cat goreleaser.yaml - - - name: Set output variable - id: set-version - run: | - version=$(grep 'version: ' goreleaser.yml | awk '{ print $2 }') - echo "Found version: $version" - echo "::set-output name=version::$version" + + - name: Pass artifact name to next step + id: artifact_name + run: echo "::set-output name=artifact_name::$(echo '${{ steps.goreleaser.outputs.artifacts }}' | jq -r '.[] | select(.type=="Archive").name')" - - name: Debug output variable - run: echo "The release version is ${{ steps.set-version.outputs.version }}" + - name: Use artifact name in next step + run: echo "The artifact name is ${{ steps.artifact_name.outputs.artifact_name }}"