From 3faf516d2eb4abc2924bc0303155c1c6509b9029 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 24 Jul 2024 14:26:41 +0200 Subject: [PATCH] Try to fix syntax --- .github/workflows/cibuildwheel.yml | 32 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 1d88bff9..c1d0bc7f 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -45,22 +45,22 @@ jobs: runs-on: ubuntu-latest steps: - name: Get the tag name and determine if it's a prerelease - id: get_tag_info - run: | - FULL_TAG=${GITHUB_REF#refs/tags/} - if [[ $FULL_TAG == release-* ]]; then - TAG_NAME=${FULL_TAG#release-} - IS_PRERELEASE=false - elif [[ $FULL_TAG == prerelease-* ]]; then - TAG_NAME=${FULL_TAG#prerelease-} - IS_PRERELEASE=true - else - echo "Tag does not match expected patterns" >&2 - exit 1 - fi - echo "FULL_TAG=$TAG_NAME" >> $GITHUB_ENV - echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV - echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV + id: get_tag_info + run: | + FULL_TAG=${GITHUB_REF#refs/tags/} + if [[ $FULL_TAG == release-* ]]; then + TAG_NAME=${FULL_TAG#release-} + IS_PRERELEASE=false + elif [[ $FULL_TAG == prerelease-* ]]; then + TAG_NAME=${FULL_TAG#prerelease-} + IS_PRERELEASE=true + else + echo "Tag does not match expected patterns" >&2 + exit 1 + fi + echo "FULL_TAG=$TAG_NAME" >> $GITHUB_ENV + echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV + echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV - name: Create Draft Release id: create_release uses: actions/create-release@v1