diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 9703c34f..a98c2f17 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -21,7 +21,7 @@ jobs: - name: Deploy to testpypi.org run: | - LATEST_RELEASE=${curl -s "https://api.github.com/repos/farridav/django-jazzmin/tags" | jq -r '[0].name[1:]'} + LATEST_RELEASE=$(curl -s "https://api.github.com/repos/farridav/django-jazzmin/tags" | jq -r '.[0].name[1:]') poetry version $LATEST_RELEASE poetry version prepatch poetry config repositories.test_pypi https://test.pypi.org/legacy/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64da4b5b..fe25cab8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: Deploy to pypi.org on: release: - types: [published, created, edited] + types: published jobs: deploy: