Skip to content

Commit

Permalink
Chore: Source VERSION string from pyproject.toml
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions committed Nov 23, 2023
1 parent 753f70d commit 48d1d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
pip install build
- name: Output Run ID
# yamllint disable-line rule:truthy
run: |
value=$(cat pyproject.toml | grep 'version = ' | awk '{print $3}' | sed 's:"::g')
value=$(grep 'version =' pyproject.toml | \
awk '{print $3}' | sed 's:"::g')
echo "$value-dev${{ github.run_id }}" > VERSION
echo ${{ github.run_id }}
Expand Down

0 comments on commit 48d1d18

Please sign in to comment.