From f7ceb75f0f61f6774c266a82ac48e42188a16942 Mon Sep 17 00:00:00 2001 From: jesse23 Date: Sat, 21 Mar 2026 23:24:44 -0400 Subject: [PATCH] ci: fix git safe.directory ownership check in release workflow Move apt-get install git before checkout and add git config --global --add safe.directory after checkout to fix 'not a git repository' error in container. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 748f77d..c9c8bee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,12 @@ jobs: permissions: contents: write steps: + - run: apt-get update && apt-get install -y --no-install-recommends git - uses: actions/checkout@v4 with: fetch-depth: 0 persist-credentials: false - - run: apt-get update && apt-get install -y --no-install-recommends git + - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" - run: bun install --frozen-lockfile - run: bun run build - name: Release