Skip to content

Commit

Permalink
Update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
candonov authored Apr 2, 2023
1 parent f10e102 commit 88f5426
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- 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: Set artifact name as environment variable
run: echo "ARTIFACT_NAME=$(echo '${{ steps.goreleaser.outputs.artifacts }}' | jq -r '.[] | select(.type == "Archive").name')" >> $GITHUB_ENV

- name: Use artifact name in next step
run: echo "The artifact name is ${{ steps.artifact_name.outputs.artifact_name }}"
run: echo ${{env.ARTIFACT_NAME}}

0 comments on commit 88f5426

Please sign in to comment.