Merge pull request #1096 from igmhub/last_covariance_fix_rebase #60
Workflow file for this run
This file contains hidden or 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 version | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '.github/**' | |
| - 'README.md' | |
| - 'CHANGELOG.md' | |
| - 'py/picca/_version.py' | |
| - '.bumpversion.cfg' | |
| jobs: | |
| bump_version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PAT_MW_TOKEN_ACTION }} | |
| - name: setup git | |
| run: | | |
| git config --global user.email "Waelthus@users.noreply.github.com" | |
| git config --global user.name "Michael Walther (bot)" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| - name: Install bump2version | |
| run: pip install bump2version | |
| - name: increase patch | |
| if: ${{ always() && (!contains(github.event.head_commit.message, '[bump major]')) && (!contains(github.event.head_commit.message, '[bump minor]')) && (!contains(github.event.head_commit.message, '[no bump]')) }} | |
| run: bump2version patch --verbose | |
| - name: Bump major version | |
| if: ${{ always() && contains(github.event.head_commit.message, '[bump major]') }} | |
| run: bump2version major --verbose --tag | |
| - name: Bump minor version | |
| if: ${{ always() && contains(github.event.head_commit.message, '[bump minor]') }} | |
| run: bump2version minor --verbose --tag | |
| - name: No version bump | |
| if: ${{ always() && contains(github.event.head_commit.message, '[no bump]') }} | |
| run: echo "No version bump requested" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.PAT_MW_TOKEN_ACTION }} | |
| tags: true |