Skip to content

Commit

Permalink
Cleanup for build_wheels gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Oct 24, 2024
1 parent ebf1dbe commit fd9a6d8
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd9a6d8

Please sign in to comment.