ci: print the version read from the version file
version / print-version (push) Successful in 17s

Add the version file and a minimal Gitea Actions workflow that reads it,
so the pipeline configuration can be verified end to end on the instance.
This commit is contained in:
BlackAngelTV committed 2026-11-20 07:48:13 +01:00
1 parent f3449f9cca
commit b5951fac0b
2 files changed
+24

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
name: version
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
print-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read version file
run: |
set -euo pipefail
version="$(tr -d '[:space:]' < version)"
if [ -z "$version" ]; then
echo "::error file=version::the version file is empty"
exit 1
fi
echo "FWS-DeskManager version: $version"
+1
View File
@@ -0,0 +1 @@
0.2.0