From 543be427867d681f135847ecd5c089c198624e28 Mon Sep 17 00:00:00 2001 From: kholmes Date: Sat, 10 Oct 2026 20:54:02 +0000 Subject: [PATCH] added for H5 step 4 --- .gitea/workflows/manual.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitea/workflows/manual.yml b/.gitea/workflows/manual.yml index d63d778..d04d21c 100644 --- a/.gitea/workflows/manual.yml +++ b/.gitea/workflows/manual.yml @@ -25,6 +25,30 @@ jobs: - name: Check out the triggering commit uses: actions/checkout@v4 + - name: Generate build metadata + working-directory: manual + env: + GIT_COMMIT: ${{ github.sha }} + BUILD_NUMBER: ${{ github.run_number }} + run: | + MANUAL_VERSION="v1.4" + SHORT_SHA="${GIT_COMMIT:0:7}" + BUILD_ID="${MANUAL_VERSION}+build.${BUILD_NUMBER}.${SHORT_SHA}" + + cat > build-metadata.tex <> build-metadata.tex <<'EOF' + \noindent\textbf{Manual version:} \ManualVersion\\ + \textbf{Build identifier:} \BuildIdentifier\\ + \textbf{Commit hash:} \BuildCommit\\ + \textbf{Gitea Actions run:} \BuildRunNumber + EOF + - name: Record build identity and toolchain run: | SHORT_SHA="${GITHUB_SHA::7}"