@@ -55,39 +55,39 @@ jobs:
5555 with :
5656 python-version : " 3.8"
5757 - name : Set release notes tag
58- if : ${{ github.event.inputs.publish_docs_only == " false" }}
58+ if : ${{ github.event.inputs.publish_docs_only == false }}
5959 run : |
6060 RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
6161 # Replace publishing version if the workflow was triggered manually
6262 test -n ${RELEASE_TAG_VERSION} && RELEASE_TAG_VERSION=${{ github.event.inputs.publish_version }}
6363 echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
6464 - name : Ensure new version is also set in pyproject and CHANGELOG
65- if : ${{ github.event.inputs.publish_docs_only == " false" }}
65+ if : ${{ github.event.inputs.publish_docs_only == false }}
6666 run : |
6767 grep --regexp "${RELEASE_TAG_VERSION}" CHANGELOG.md
6868 grep --regexp "version \= \"${RELEASE_TAG_VERSION}\"" pyproject.toml
6969 - name : Install dependencies
7070 run : make dev
7171 - name : Run all tests, linting and baselines
72- if : ${{ github.event.inputs.publish_docs_only == " false" }}
72+ if : ${{ github.event.inputs.publish_docs_only == false }}
7373 run : make pr
7474 - name : Build python package and wheel
75- if : ${{ github.event.inputs.publish_docs_only == " false" }}
75+ if : ${{ github.event.inputs.publish_docs_only == false }}
7676 run : poetry build
7777 - name : Upload to PyPi test
78- if : ${{ github.event.inputs.publish_docs_only == " false" }}
78+ if : ${{ github.event.inputs.publish_docs_only == false }}
7979 run : make release-test
8080 env :
8181 PYPI_USERNAME : __token__
8282 PYPI_TEST_TOKEN : ${{ secrets.PYPI_TEST_TOKEN }}
8383 - name : Upload to PyPi prod
84- if : ${{ github.event.inputs.publish_docs_only == " false" }}
84+ if : ${{ github.event.inputs.publish_docs_only == false }}
8585 run : make release-prod
8686 env :
8787 PYPI_USERNAME : __token__
8888 PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
8989 - name : publish lambda layer in SAR by triggering the internal codepipeline
90- if : ${{ github.event.inputs.publish_docs_only == " false" }}
90+ if : ${{ github.event.inputs.publish_docs_only == false }}
9191 run : |
9292 aws ssm put-parameter --name "powertools-python-release-version" --value $RELEASE_TAG_VERSION --overwrite
9393 aws codepipeline start-pipeline-execution --name ${{ secrets.CODEPIPELINE_NAME }}
@@ -124,7 +124,7 @@ jobs:
124124 runs-on : ubuntu-latest
125125 steps :
126126 - uses : actions/checkout@v2
127- if : ${{ github.event.inputs.publish_docs_only == " false" }}
127+ if : ${{ github.event.inputs.publish_docs_only == false }}
128128 - name : Sync master from detached head
129129 # If version matches CHANGELOG and pyproject.toml
130130 # If it passes all checks, successfully releases to test and prod
0 commit comments