diff --git a/.github/workflows/cdkactions_build-and-publish.yaml b/.github/workflows/cdkactions_build-and-publish.yaml index dfc9855..3313859 100644 --- a/.github/workflows/cdkactions_build-and-publish.yaml +++ b/.github/workflows/cdkactions_build-and-publish.yaml @@ -35,12 +35,14 @@ jobs: if: startsWith(github.ref, 'refs/tags') steps: - uses: actions/checkout@v2 + - name: Install dependencies + run: pip install poetry - name: Verify tag run: |- GIT_TAG=${GITHUB_REF} LIBRARY_VERSION=$(poetry version -s) - echo $GIT_TAG - if [[ "$GIT_TAG" != LIBRARY_VERSION ]]; then exit 1; fi + POETRY_REF=refs/tags/$LIBRARY_VERSION + if [[ ${GITHUB_REF} != POETRY_REF ]]; then exit 1; fi - name: Build run: poetry build - name: Publish