diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 548316c6a..841e4ca2a 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -13,26 +13,25 @@ on: jobs: update_version: - name: Update version only on ubuntu but used by windows and macos - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - # Check if VERSION.txt file has changed in this push - - name: Check if VERSION.txt file has changed - id: version_changed - run: | - echo "version_changed=false" >> $GITHUB_ENV - echo "new_version=" >> $GITHUB_ENV # Initialize with empty value - if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "VERSION.txt"; then - echo "VERSION.txt file has been modified" - echo "version_changed=true" >> $GITHUB_ENV - new_version=$(cat VERSION.txt) - echo "new_version=$new_version" >> $GITHUB_ENV - else - echo "VERSION.txt file has NOT been modified" - fi + name: Update version only on ubuntu but used by windows and macos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # Check if VERSION.txt file has changed in this push + - name: Check if VERSION.txt file has changed + id: version_changed + run: | + echo "version_changed=false" >> $GITHUB_ENV + echo "new_version=" >> $GITHUB_ENV # Initialize with empty value + if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "VERSION.txt"; then + echo "VERSION.txt file has been modified" + echo "version_changed=true" >> $GITHUB_ENV + new_version=$(cat VERSION.txt) + echo "new_version=$new_version" >> $GITHUB_ENV + else + echo "VERSION.txt file has NOT been modified" + fi # Step 4: Increment version if VERSION.txt was not changed - name: Increment version if necessary