Skip to content

Commit

Permalink
ci: use output of job instead of env var
Browse files Browse the repository at this point in the history
  • Loading branch information
florianvazelle committed Oct 26, 2023
1 parent 131ecf6 commit 9beb2a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ jobs:
name: Create Release
steps:
- name: Check Tag
id: tag
run: |
if [[ ${{ env.BRANCH_NAME }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "tag_name=${{ env.BRANCH_NAME }}" >> "$GITHUB_ENV"
echo "tag_name=${{ env.BRANCH_NAME }}" >> "$GITHUB_OUTPUT"
else
echo "tag_name=null" >> "$GITHUB_ENV"
echo "tag_name=null" >> "$GITHUB_OUTPUT"
fi
create_release:
needs: set_tag_name

if: ${{ env.tag_name != 'null' }}
if: ${{ needs.set_tag_name.outputs.tag != 'null' }}
runs-on: ubuntu-22.04

name: Create Release
Expand Down

0 comments on commit 9beb2a7

Please sign in to comment.