jamesfredley opened a new pull request, #67:
URL: https://github.com/apache/grails-github-actions/pull/67

   ## Summary
   
   - Add pull-rebase-retry loop (up to 5 attempts) to the `deploy-github-pages` 
action's `git push` step to handle concurrent doc deployments from multiple 
branches racing to push to the same documentation branch.
   
   ## Problem
   
   When multiple Grails branches (e.g. 7.0.x, 7.1.x, 8.0.x) build concurrently, 
their `docs` jobs all try to push to the same `asf-site-production` branch on 
`apache/grails-website`. Only the first push succeeds - the rest fail with:
   
   ```
   ! [rejected] asf-site-production -> asf-site-production (fetch first)
   error: failed to push some refs to 
'https://github.com/apache/grails-website.git'
   ```
   
   Example failure: 
https://github.com/apache/grails-core/actions/runs/23371669652/job/68001176574
   
   ## Fix
   
   Replace the single `git push` call with a retry loop that:
   1. Attempts the push
   2. On rejection, pulls remote changes with `--rebase`
   3. Retries (up to 5 attempts)
   4. Fails with a clear error if all attempts are exhausted


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to