Skip to content

Commit

Permalink
Export toml_version variable
Browse files Browse the repository at this point in the history
  • Loading branch information
atz committed Jun 13, 2023
1 parent a2e1878 commit 53e0293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
run: |
function bail() { echo "Error: pyproject.toml 'version' and git release tag must match"; exit 1; }
[[ -f ./pyproject.toml ]] || bail
sed -En '/\[tool.poetry\]/,/^version/p' ./pyproject.toml
declare -x toml_version
sed -En '/\[tool.poetry\]/,/^version/{ s/^version *= *"(.+)"/\1/p; }' ./pyproject.toml
sed -En '/\[tool.poetry\]/,/^version/{ s/^version *= *"(.+)"/\1/p; }' ./pyproject.toml | read toml_version
cat <<-EOF
GITHUB_REF_TYPE: $GITHUB_REF_TYPE
Expand Down

0 comments on commit 53e0293

Please sign in to comment.