Skip to content

Commit 41fc36a

Browse files
🐞 fix: env.package_version_* is empty
1 parent 4edf2ea commit 41fc36a

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
run: |
6161
python -m pip install --upgrade pip
6262
pip install poetry tox tox-gh-actions
63-
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" > $GITHUB_ENV
64-
echo "package_version_full"=`poetry version`.DEV.$GITHUB_RUN_NUMBER >> $GITHUB_ENV
63+
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
64+
echo "package_version_full=`poetry version`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
6565
6666
- name: build documentation
6767
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
python -m pip install --upgrade pip
4545
pip install tox-gh-actions poetry
4646
echo "package_version_short=`poetry version --short`" > $GITHUB_ENV
47-
echo "package_version_full"=`poetry version` >> $GITHUB_ENV
47+
echo "package_version_full=`poetry version`" >> $GITHUB_ENV
4848
4949
- name: pre-publish documentation
5050
run: |

docs/history.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* [#16](https://github.com/zillionare/python-project-wizard/issues/16) fixed
1515
* [#18](https://github.com/zillionare/python-project-wizard/issues/18) fixed
1616
* [#19](https://github.com/zillionare/python-project-wizard/issues/19) implemented.
17+
* [#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.
1718
## v1.0
1819
***first release with the following features:***
1920

{{cookiecutter.project_slug}}/.github/workflows/dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ jobs:
7272
run: |
7373
python -m pip install --upgrade pip
7474
pip install poetry tox tox-gh-actions
75-
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" > $GITHUB_ENV
76-
echo "package_version_full"=`poetry version`.DEV.$GITHUB_RUN_NUMBER >> $GITHUB_ENV
75+
echo "package_version_short=`poetry version --short`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
76+
echo "package_version_full=`poetry version`.DEV.$GITHUB_RUN_NUMBER" >> $GITHUB_ENV
7777
7878
- name: build documentation
7979
run: |

{{cookiecutter.project_slug}}/.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
run: |
4444
python -m pip install --upgrade pip
4545
pip install tox-gh-actions poetry
46-
echo "package_version_short=`poetry version --short`" > $GITHUB_ENV
47-
echo "package_version_full"=`poetry version` >> $GITHUB_ENV
46+
echo "package_version_short=`poetry version --short`" >> $GITHUB_ENV
47+
echo "package_version_full=`poetry version`" >> $GITHUB_ENV
4848
4949
- name: pre-publish documentation
5050
run: |

0 commit comments

Comments
 (0)