Skip to content

Commit

Permalink
Tell sed not to create backup file on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-courtney-pieces committed Sep 26, 2024
1 parent 6ddab20 commit 8cee2d9
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 8cee2d9

Please sign in to comment.