mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build-system: push to origin instead of explicit URL
Otherwise we don't use the embedded credentials and the push fails. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9aa9bec914
commit
744257149f
1 changed files with 2 additions and 2 deletions
|
@ -33,13 +33,13 @@ else
|
||||||
|
|
||||||
# now comes the moment of truth - are we the first one?
|
# now comes the moment of truth - are we the first one?
|
||||||
# the push will succeed for exactly one of the workflows
|
# the push will succeed for exactly one of the workflows
|
||||||
if git push https://github.com/subsurface/nightly-builds "$SHA_BRANCH"
|
if git push origin "$SHA_BRANCH"
|
||||||
then
|
then
|
||||||
# yay - we win! now let's make sure that we remember this number for next time
|
# yay - we win! now let's make sure that we remember this number for next time
|
||||||
git checkout main
|
git checkout main
|
||||||
echo $latest > latest-subsurface-buildnumber
|
echo $latest > latest-subsurface-buildnumber
|
||||||
git commit -a -m "record latest build number in main branch"
|
git commit -a -m "record latest build number in main branch"
|
||||||
if ! git push https://github.com/subsurface/nightly-builds main
|
if ! git push origin main
|
||||||
then
|
then
|
||||||
echo "push to main failed - we'll lose monotonic property"
|
echo "push to main failed - we'll lose monotonic property"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue