Skip to content

Commit df6af56

Browse files
authored
ci: add automatic version tagging workflow
Related PR #194
1 parent dd160f1 commit df6af56

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/auto_version.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Auto version
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
update-version:
14+
if: ${{ github.repository == 'manticoresoftware/columnar' }}
15+
runs-on: ubuntu-24.04
16+
outputs:
17+
version: ${{ steps.semver-tagger.outputs.version }}
18+
version_full: ${{ steps.semver-tagger.outputs.version_full }}
19+
version_rpm: ${{ steps.semver-tagger.outputs.version_rpm }}
20+
version_deb: ${{ steps.semver-tagger.outputs.version_deb }}
21+
version_updated: ${{ steps.semver-tagger.outputs.version_updated }}
22+
target: ${{ steps.semver-tagger.outputs.target }}
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v5
26+
with:
27+
fetch-depth: 0
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- id: semver-tagger
31+
uses: manticoresoftware/semver-tagger-action@main
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
ignore_patterns: '\.md$|^test/|\.github|\.yml|\.gitignore$'
35+
debug: true
36+
37+
- name: Report version
38+
run: |
39+
echo "Version: ${{ steps.semver-tagger.outputs.version }}"
40+
echo "Full version: ${{ steps.semver-tagger.outputs.version_full }}"
41+
echo "Version updated: ${{ steps.semver-tagger.outputs.version_updated }}"
42+
echo "Target: ${{ steps.semver-tagger.outputs.target }}"

0 commit comments

Comments
 (0)