mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
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:
1 parent
ac08b106bc
commit
53dd20b7f0
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user