Skip to content

Commit

Permalink
Merge pull request #185 from pieces-app/fix/init_py_version_writing
Browse files Browse the repository at this point in the history
Tell sed not to create backup file on macos
  • Loading branch information
bishoy-at-pieces authored Sep 26, 2024
2 parents 6ddab20 + 8cee2d9 commit 144f47b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ jobs:
RELEASE_VERSION="${RELEASE_VERSION#v}"
echo $RELEASE_VERSION
poetry version $RELEASE_VERSION
sed -i "s/__version__ = .*/__version__ = '${RELEASE_VERSION}'/" src/pieces/__init__.py
sed -i "" "s/__version__ = .*/__version__ = '${RELEASE_VERSION}'/" src/pieces/__init__.py
else
echo "This is not a tagged build"
export STAGING_VERSION='${{ steps.staging_version.outputs.STAGING_VERSION }}'
poetry version $STAGING_VERSION
sed -i "s/__version__ = .*/__version__ = '${STAGING_VERSION}'/" src/pieces/__init__.py
sed -i "" "s/__version__ = .*/__version__ = '${STAGING_VERSION}'/" src/pieces/__init__.py
fi
### Writing our staging version to a file to be pulled in the last step to update our json in the cloud
Expand Down

0 comments on commit 144f47b

Please sign in to comment.