We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5499379 commit 0624caaCopy full SHA for 0624caa
.github/workflows/bump-version.yml
@@ -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