forgejo/ci: run build in pazof/yavsc-build-env container #17

Merged
notazof merged 9 commits from feat/postit-release-page into main 2026-08-16 13:50:13 +01:00
Showing only changes of commit cc50a8bbc8 - Show all commits

ci: unshallow clone for GitVersion
All checks were successful
Dotnet build and test / log-the-inputs (pull_request) Successful in 9s
Dotnet build and test / build (pull_request) Successful in 5m41s

GitVersion.MsBuild fails on shallow clones ('Repository is a shallow
clone. Git repositories must contain the full history.') because it
walks the git log to compute the SemVer version.

Drop --depth 1 from both the PR ref fetch and the submodule update
so the runner's working tree has full history. The repo is small
enough that the cost is negligible.
Paul Schneider 2026-08-16 13:39:53 +01:00
Signed by: notazof
GPG key ID: 1DD5D838E5343B06

View file

@ -46,10 +46,10 @@ jobs:
git clone https://forgejo.pschneider.fr/notazof/yavsc.git _src
cd _src
if [ -n "${GITHUB_REF:-}" ]; then
git fetch --depth 1 origin "$GITHUB_REF"
git fetch origin "$GITHUB_REF"
git checkout FETCH_HEAD
fi
git submodule update --init --recursive --depth 1
git submodule update --init --recursive
echo "Checked out at $(git rev-parse HEAD) on $(git branch --show-current 2>/dev/null || echo detached HEAD)"
- name: Restore dependencies
run: cd /src/_src && dotnet restore