Skip to content

Commit

Permalink
Add check if receptorctl pypi already at latest (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
matoval authored May 8, 2024
1 parent da17a42 commit f4cbe80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:
run: echo pypi_repo=testpypi >> $GITHUB_ENV
if: ${{ github.repository_owner != 'ansible' }}

- name: Set receptor pypi version
run: echo RECEPTORCTL_PYPI_VERSION=$(curl --silent https://pypi.org/pypi/receptorctl/json | jq --raw-output '.info.version') >> $GITHUB_ENV

- name: Build receptorctl and upload to pypi
if: ${{ env.RECEPTORCTL_PYPI_VERSION != env.TAG }}
run: |
make receptorctl_wheel receptorctl_sdist VERSION=$TAG
twine upload \
Expand Down

0 comments on commit f4cbe80

Please sign in to comment.