This commit is contained in:
@@ -25,6 +25,30 @@ jobs:
|
|||||||
- name: Check out the triggering commit
|
- name: Check out the triggering commit
|
||||||
uses: actions/checkout@v4
|
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 <<EOF
|
||||||
|
\newcommand{\ManualVersion}{${MANUAL_VERSION}}
|
||||||
|
\newcommand{\BuildIdentifier}{${BUILD_ID}}
|
||||||
|
\newcommand{\BuildCommit}{${GIT_COMMIT}}
|
||||||
|
\newcommand{\BuildRunNumber}{${BUILD_NUMBER}}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat >> 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
|
- name: Record build identity and toolchain
|
||||||
run: |
|
run: |
|
||||||
SHORT_SHA="${GITHUB_SHA::7}"
|
SHORT_SHA="${GITHUB_SHA::7}"
|
||||||
|
|||||||
Reference in New Issue
Block a user