feat: add workflow for updating readme version

This commit is contained in:
2026-07-31 15:41:50 +02:00
parent ec244e47f2
commit 71cb22236c
+18
View File
@@ -0,0 +1,18 @@
name: main
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
generate-json:
runs-on: ubuntu-latest
steps:
# Setup environment
- name: Check out repository
uses: actions/checkout@v4
- name: Update README version
run: |
CURRENT_TAG=$(git describe --tags --abbrev=0)
sed -i "s#version-[0-9]*\.[0-9]*\.[0-9]*-#version-$CURRENT_TAG-#g" README.md