Fix window attrs in SPI/SPEI (#1554) #188
Workflow file for this run
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: Bump Patch Version | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- .* | ||
- .github/**.yml | ||
- CHANGES.rst | ||
- Makefile | ||
- docs/**.ipynb | ||
- docs/**.py | ||
- docs/**.rst | ||
- docs/Makefile | ||
- docs/make.bat | ||
- docs/references.bib | ||
- environment.yml | ||
- pylintrc | ||
- pyproject.toml | ||
- requirements_dev.txt | ||
- requirements_upstream.txt | ||
- tox.ini | ||
- xclim/__init__.py | ||
permissions: # added using https://github.com/step-security/secure-repo | ||
contents: read | ||
jobs: | ||
bump_patch_version: | ||
name: Bumpversion Patch | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
with: | ||
egress-policy: audit | ||
- uses: actions/checkout@v4.1.1 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: "3.x" | ||
- name: Config Commit Bot | ||
run: | | ||
git config --local user.email "bumpversion[bot]@ouranos.ca" | ||
git config --local user.name "bumpversion[bot]" | ||
- name: Current Version | ||
run: | | ||
CURRENT_VERSION="$(grep -E '__version__' xclim/__init__.py | cut -d ' ' -f3)" | ||
echo "current_version=${CURRENT_VERSION}" | ||
echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV | ||
- name: Install bump-my-version | ||
run: | | ||
python -m pip install bump-my-version | ||
- name: Bump Patch Version | ||
if: ${{ !env.CURRENT_VERSION =~ \d+\.\d+\.\d+(-dev(\.\d+)?)?$ }} | ||
Check failure on line 57 in .github/workflows/bump-version.yml GitHub Actions / Bump Patch VersionInvalid workflow file
|
||
run: | | ||
echo "Version is stable, bumping 'patch' version" | ||
bump-my-version bump patch | ||
NEW_VERSION="$(grep -E '__version__' xclim/__init__.py | cut -d ' ' -f3)" | ||
echo "new_version=${NEW_VERSION}" | ||
- name: Bump Build Version | ||
if: ${{ env.CURRENT_VERSION =~ \d+\.\d+\.\d+(-dev(\.\d+)?)?$ }} | ||
run: | | ||
echo "Development version (ends in 'dev(\.\d+)?'), bumping 'build' version" | ||
bump-my-version bump build | ||
NEW_VERSION="$(grep -E '__version__' xclim/__init__.py | cut -d ' ' -f3)" | ||
echo "new_version=${NEW_VERSION}" | ||
- name: Push Changes | ||
uses: ad-m/github-push-action@v0.8.0 | ||
with: | ||
force: false | ||
github_token: ${{ secrets.BUMPVERSION_TOKEN }} | ||
branch: ${{ github.ref }} |