From 41fc36a7ab8c5085162e2aef73426c8c92863e8f Mon Sep 17 00:00:00 2001 From: aaron yang Date: Thu, 11 Aug 2022 20:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20env.package=5Fversion=5F*?= =?UTF-8?q?=20is=20empty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev.yml | 4 ++-- .github/workflows/release.yml | 2 +- docs/history.md | 1 + {{cookiecutter.project_slug}}/.github/workflows/dev.yml | 4 ++-- {{cookiecutter.project_slug}}/.github/workflows/release.yml | 4 ++-- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index efb1b3d1..7ebcec50 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1da7f44..df7dfba1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/docs/history.md b/docs/history.md index 333d0a6c..dd22606f 100644 --- a/docs/history.md +++ b/docs/history.md @@ -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:*** diff --git a/{{cookiecutter.project_slug}}/.github/workflows/dev.yml b/{{cookiecutter.project_slug}}/.github/workflows/dev.yml index 4ba227e5..9f614af4 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/dev.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/dev.yml @@ -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: | diff --git a/{{cookiecutter.project_slug}}/.github/workflows/release.yml b/{{cookiecutter.project_slug}}/.github/workflows/release.yml index c1212722..e84aa1b3 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/release.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/release.yml @@ -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: |