diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 21cc3ac..a05b6ce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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