We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62195bf commit b09ccd1Copy full SHA for b09ccd1
.github/workflows/version.yml
@@ -0,0 +1,30 @@
1
+name: Bump Version
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - 'skills/**'
8
9
+jobs:
10
+ bump:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ with:
15
+ token: ${{ secrets.GITHUB_TOKEN }}
16
17
+ - name: Bump version
18
+ run: |
19
+ current=$(cat version.txt)
20
+ next=$((current + 1))
21
+ echo $next > version.txt
22
+ echo "Bumped version from $current to $next"
23
24
+ - name: Commit and push
25
26
+ git config user.name "github-actions[bot]"
27
+ git config user.email "github-actions[bot]@users.noreply.github.com"
28
+ git add version.txt
29
+ git commit -m "v$(cat version.txt)"
30
+ git push
version.txt
@@ -0,0 +1 @@
+1
0 commit comments