From b62acac625b0eeb69866c78b47b3a588e1ff06cf Mon Sep 17 00:00:00 2001 From: Joe Kaufeld Date: Sat, 23 Jul 2022 00:54:50 -0400 Subject: [PATCH] change injection point --- .github/workflows/build_and_release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 9484e15..f81ff4b 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -23,10 +23,8 @@ 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 - run: | - touch src/__version__.py - echo "__version__ = '${{ env.SHORT_SHA }}'" >> src/__version__.py + - name: Inject version into src.__version__ + run: echo "__version__ = '${{ env.SHORT_SHA }}'" > src/__init__.py - name: build the sucker run: make build - uses: ncipollo/release-action@v1