Skip to content

Commit

Permalink
CI: Set tag to use in file name in a single task
Browse files Browse the repository at this point in the history
Avoids the duplication of the same `id`.
  • Loading branch information
badboy committed Jan 5, 2025
1 parent c305615 commit ba9f81c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ jobs:
run: cargo build --release --target ${{ matrix.target }}

- name: Post Setup | Extract tag name
if: ${{ !env.ACT }}
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
id: extract_tag

- name: Post Setup | Extract tag name (ACT)
if: ${{ env.ACT }}
shell: bash
run: echo "##[set-output name=tag;]v1.0.0"
run: |
if [ -z "$ACT" ]; then
echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
else
echo "##[set-output name=tag;]v1.0.0"
fi
id: extract_tag

- name: Post Setup | Prepare artifacts [Windows]
Expand Down

0 comments on commit ba9f81c

Please sign in to comment.