diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2022-03-28 15:31:58 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2022-03-28 15:41:01 +0300 |
commit | a44b1e784ab987d56d4bc5a1477b705c1a2f0a56 (patch) | |
tree | 452ed6b00d1edf0dbf3b988718a750eb3774906e /.github | |
parent | 54d98a840d142be3d1fc07a881b925bfebe08176 (diff) |
Avoid error in workflow if version has already been published
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/pypi_publish.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index b855c75..012d1ec 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -34,7 +34,15 @@ jobs: run: | openssl sha256 nanopb/extra/poetry/dist/*.whl + - name: Run only if new changes + id: check_changes + uses: actions/cache@v1 + with: + path: nanopb/extra/poetry/build + key: check-changes-${{ github.sha }} + - name: Publish PyPI package + if: steps.check_changes.outputs.cache-hit != 'true' env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_KEY }} POETRY_HTTP_BASIC_PYPI_USERNAME: __token__ |