Skip to content

Commit df89f59

Browse files
authored
ci: add manual patch version bumping (#696)
1 parent 4549ffc commit df89f59

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/bump-patch.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: bump patch version
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
tag:
8+
runs-on: ubuntu-latest
9+
needs: test
10+
if: ${{ github.ref == 'refs/heads/main' }}
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
14+
with:
15+
fetch-depth: 0
16+
token: ${{ secrets.EZ_BOT_TOKEN }}
17+
18+
- name: Install svu
19+
run: |
20+
# renovate: datasource=github-releases depName=caarlos0/svu
21+
export SVU_VERSION="v1.10.2"
22+
curl -Lo ./svu.tar.gz "https://github.com/caarlos0/svu/releases/download/${SVU_VERSION}/svu_${SVU_VERSION#v}_linux_amd64.tar.gz"
23+
tar -C "$HOME" -xzf svu.tar.gz
24+
rm svu.tar.gz
25+
26+
- name: Tag new version
27+
run: |
28+
echo "Bumping patch version"
29+
git tag "$(~/svu patch)"
30+
git push --tags

0 commit comments

Comments
 (0)