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.
This commit is contained in:
vhaudiquet committed 2026-10-31 19:10:33 -05:00
1 parent ac08b106bc
commit 53dd20b7f0
1 file changed
+2 -1
+2 -1
View File
@@ -144,12 +144,13 @@ jobs:
exit 0 exit 0
fi fi
git clone -q "https://x-access-token:$TAP_TOKEN@github.com/vhaudiquet/homebrew-ecrou" tap 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 cp formula/Formula/ecrou.rb tap/Formula/ecrou.rb
cd tap cd tap
git add Formula/ecrou.rb git add Formula/ecrou.rb
git -c user.name="ecrou-release" -c user.email="noreply@github.com" \ git -c user.name="ecrou-release" -c user.email="noreply@github.com" \
commit -m "ecrou $v" commit -m "ecrou $v"
git push -q git push -q origin HEAD:main
publish-snap: publish-snap:
needs: build-snap needs: build-snap