Skip to content

Commit

Permalink
🐞 fix: env.package_version_* is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-yang-biz committed Aug 11, 2022
1 parent 4edf2ea commit 41fc36a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry tox tox-gh-actions
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" > $GITHUB_ENV
echo "package_version_full"=`poetry version`.DEV.$GITHUB_RUN_NUMBER >> $GITHUB_ENV
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "package_version_full=`poetry version`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
- name: build documentation
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
python -m pip install --upgrade pip
pip install tox-gh-actions poetry
echo "package_version_short=`poetry version --short`" > $GITHUB_ENV
echo "package_version_full"=`poetry version` >> $GITHUB_ENV
echo "package_version_full=`poetry version`" >> $GITHUB_ENV
- name: pre-publish documentation
run: |
Expand Down
1 change: 1 addition & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* [#16](https://github.com/zillionare/python-project-wizard/issues/16) fixed
* [#18](https://github.com/zillionare/python-project-wizard/issues/18) fixed
* [#19](https://github.com/zillionare/python-project-wizard/issues/19) implemented.
* [#20](https://github.com/zillionare/python-project-wizard/issues/20) implemented. You can refer by using ${{ env.package_version_short }} and ${{ env.package_version_full }} now.
## v1.0
***first release with the following features:***

Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/.github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install poetry tox tox-gh-actions
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" > $GITHUB_ENV
echo "package_version_full"=`poetry version`.DEV.$GITHUB_RUN_NUMBER >> $GITHUB_ENV
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
echo "package_version_full=`poetry version`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
- name: build documentation
run: |
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install tox-gh-actions poetry
echo "package_version_short=`poetry version --short`" > $GITHUB_ENV
echo "package_version_full"=`poetry version` >> $GITHUB_ENV
echo "package_version_short=`poetry version --short`" >> $GITHUB_ENV
echo "package_version_full=`poetry version`" >> $GITHUB_ENV
- name: pre-publish documentation
run: |
Expand Down

0 comments on commit 41fc36a

Please sign in to comment.