-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix semver workflow to conform to regex conventions in GitHub (#1573)
### What kind of change does this PR introduce? * Bug fix to deal with how regex is handled in GitHub Workflows ### Does this PR introduce a breaking change? No. ### Other information: Worth noting: https://github.com/mpalmer/action-validator
- Loading branch information
Showing
7 changed files
with
41 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,18 @@ on: | |
- master | ||
paths-ignore: | ||
- .* | ||
- .github/**.yml | ||
- .github/*/*.yml | ||
- CHANGES.rst | ||
- Makefile | ||
- docs/**.ipynb | ||
- docs/**.py | ||
- docs/**.rst | ||
- 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 | ||
|
@@ -53,20 +52,19 @@ jobs: | |
- 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+)?)?$ }} | ||
- name: Conditional Bump | ||
id: bump | ||
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 | ||
if [[ $CURRENT_VERSION =~ \d+\.\d+\.\d+-dev(\.\d+)?$ ]]; then | ||
echo "Development version (ends in 'dev(\.\d+)?'), bumping 'build' version" | ||
bump-my-version bump build | ||
else | ||
echo "Version is stable, bumping 'patch' version" | ||
bump-my-version bump patch | ||
fi | ||
NEW_VERSION="$(grep -E '__version__' xclim/__init__.py | cut -d ' ' -f3)" | ||
echo "new_version=${NEW_VERSION}" | ||
echo "NEW_VERSION=${NEW_VERSION}" >> $GITHUB_ENV | ||
- name: Push Changes | ||
uses: ad-m/[email protected] | ||
with: | ||
|
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
__author__ = """Travis Logan""" | ||
__email__ = "[email protected]" | ||
__version__ = "0.47.4-beta" | ||
__version__ = "0.47.4-dev.0" | ||
|
||
|
||
_module_data = _files("xclim.data") | ||
|