Skip to content

Commit

Permalink
build: GHA workflow for bumping version
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisVincent committed Mar 31, 2023
1 parent c084f69 commit 3fc3606
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/version.yml
@@ -0,0 +1,32 @@
name: Bump version (if necessary)

on: push

jobs:
bump-version:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # checkout full commit history

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Configure git to be able to push to repo
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Run Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pipx run python-semantic-release version -v DEBUG
git push

0 comments on commit 3fc3606

Please sign in to comment.