mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:34:04 +00:00
ci: use the current branch for rebase
This commit is contained in:
parent
c5f187d2c7
commit
a784ee0311
1 changed files with 2 additions and 1 deletions
3
.github/workflows/extensions.yml
vendored
3
.github/workflows/extensions.yml
vendored
|
|
@ -56,8 +56,9 @@ jobs:
|
|||
- name: Push files (Unix)
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
for attempt in {1..3}; do
|
||||
git pull --rebase && git push && exit 0 || {
|
||||
git pull --rebase origin/$CURRENT_BRANCH && git push origin $CURRENT_BRANCH && exit 0 || {
|
||||
echo "Attempt $attempt failed. Retrying in 5 seconds..."
|
||||
sleep 5
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue