[python](deps): Bump click from 8.1.7 to 8.1.8 #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for version bump | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- labeled | |
- unlabeled | |
jobs: | |
check: | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-release') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install Curl | |
run: sudo apt install curl | |
- name: Get package version | |
run: echo "PACKAGE_VERSION=$(poetry version | awk '{print $2}')" >> $GITHUB_ENV | |
- name: Check for existing PyPI version | |
run: curl -I --silent --fail -o /dev/null https://pypi.org/project/zarr-checksum/$PACKAGE_VERSION/ && exit 1 || exit 0 | |
- name: Error if version found | |
if: ${{ failure() }} | |
run: | | |
echo "Current package version ($PACKAGE_VERSION) already exists. Please either bump the \ | |
package version, or add the \"skip-release\" label to the pull request." \ | |
&& exit 1 |