Skip to content

Commit

Permalink
fix: update version in template (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter committed Oct 4, 2023
1 parent 072482f commit 51591eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump_poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ jobs:
git config user.name github-actions
git config user.email [email protected]
poetry version ${{ env.VERSION_TYPE }}
NEW_VERSION=$(poetry version --short)
PROJECT_VERSION=$(poetry version --short)
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
git add pyproject.toml
git commit -m "bump up ${{ env.VERSION_TYPE }} version from workflow"
git push
- name: update version in template_input.yaml
run: |
git config user.name github-actions
git config user.email [email protected]
sed -i "1 s/.*/${{ env.NEW_VERSION }}/" template_input.yaml
echo "PROJECT_VERSION=$PROJECT_VERSION"
sed -i "1 s/.*/${{ env.PROJECT_VERSION }}/" template_input.yaml

0 comments on commit 51591eb

Please sign in to comment.