Skip to content

Commit 0624caa

Browse files
committed
Added GitHub Action
1 parent 5499379 commit 0624caa

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/bump-version.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Bump Version
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Adjust this to your default branch
7+
8+
jobs:
9+
bump-version:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
20+
- name: Run version bump script
21+
run: python bump_version.py
22+
23+
- name: Commit updated version
24+
run: |
25+
git config --global user.name "GitHub Action"
26+
git config --global user.email "[email protected]"
27+
git add version.txt # Or version.py
28+
git commit -m "Bump version" || echo "No changes to commit"
29+
git push

0 commit comments

Comments
 (0)