diff --git a/.gitea/workflows/version.yml b/.gitea/workflows/version.yml new file mode 100644 index 0000000..ba10fdf --- /dev/null +++ b/.gitea/workflows/version.yml @@ -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" diff --git a/version b/version new file mode 100644 index 0000000..0ea3a94 --- /dev/null +++ b/version @@ -0,0 +1 @@ +0.2.0