From 53dd20b7f0e37be6e1a8060a16ff3fd100474c50 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sat, 31 Oct 2026 19:10:33 -0500 Subject: [PATCH] fix(release): create tap/Formula and push an explicit branch The tap repo starts empty: the clone has no Formula/ directory, so the cp failed. Push HEAD to main explicitly so the tap's branch does not depend on the runner's init.defaultBranch. --- .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 c384ba9..35d7831 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,12 +144,13 @@ jobs: exit 0 fi git clone -q "https://x-access-token:$TAP_TOKEN@github.com/vhaudiquet/homebrew-ecrou" tap + mkdir -p tap/Formula cp formula/Formula/ecrou.rb tap/Formula/ecrou.rb cd tap git add Formula/ecrou.rb git -c user.name="ecrou-release" -c user.email="noreply@github.com" \ commit -m "ecrou $v" - git push -q + git push -q origin HEAD:main publish-snap: needs: build-snap