transition to sed

This commit is contained in:
Joe Kaufeld 2022-07-23 12:05:34 -04:00
parent b62acac625
commit 862154d5ba
2 changed files with 5 additions and 4 deletions

View File

@ -23,10 +23,10 @@ jobs:
# https://stackoverflow.com/a/64195658
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
- name: Inject version into src.__version__
run: echo "__version__ = '${{ env.SHORT_SHA }}'" > src/__init__.py
- name: build the sucker
run: make build
- name: Build the sucker
run: |
sed -i -e "s/?????/${{ env.SHORT_SHA }}/g" src/__init__.py
make build
- uses: ncipollo/release-action@v1
with:
artifacts: "utils"

View File

@ -0,0 +1 @@
__version__ = "?????" # will be replaced during build by CI