diff --git a/.github/workflows/extensions.yml b/.github/workflows/extensions.yml index 44694d19..647cd29b 100644 --- a/.github/workflows/extensions.yml +++ b/.github/workflows/extensions.yml @@ -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 }