An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(ci): protect main during sync conflicts
Andras Bacsaidd90926583e2
diff --git a/.github/workflows/sync-main-to-next.yml b/.github/workflows/sync-main-to-next.ymlindex 614175d9b4..595a21e799 100644--- a/.github/workflows/sync-main-to-next.yml+++ b/.github/workflows/sync-main-to-next.yml@@ -45,15 +45,17 @@ jobs:exit 1fi- existing_pr=$(gh pr list --base next --head main --state open --json url --jq '.[0].url')+ sync_branch='automation/sync-main-to-next'+ existing_pr=$(gh pr list --base next --head "$sync_branch" --state open --json url --jq '.[0].url')if [ -n "$existing_pr" ]; thenecho "A main to next pull request already exists: $existing_pr"else+ git push --force origin origin/main:"refs/heads/$sync_branch"gh pr create \--base next \- --head main \+ --head "$sync_branch" \--title 'chore: merge main into next' \- --body 'This pull request was created automatically because main could not be merged into next without conflicts.'+ --body 'This pull request was created automatically because main could not be merged into next without conflicts. Resolve conflicts on this temporary branch; never update main with next.'fiecho 'main could not be merged into next without conflicts.'