mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ci: update workflow to clone repo with history (#61223)
Tentative fix for: ``` Adding upstream remote: ***github.com/angular-robot/angular.git origin https://github.com/angular/angular (fetch) origin https://github.com/angular/angular (push) upstream ***github.com/angular-robot/angular.git (fetch) upstream ***github.com/angular-robot/angular.git (push) Pushing 19.2.x from origin to angular-robot upstream... To https://github.com/angular-robot/angular.git ! [rejected] 19.2.x -> 19.2.x (stale info) error: failed to push some refs to 'https://github.com/angular-robot/angular.git' ``` PR Close #61223
This commit is contained in:
committed by
Alex Rickabaugh
parent
adffb2ec82
commit
db06708e5e
@@ -26,6 +26,7 @@ jobs:
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: ${{ github.ref }} # Checks out the branch that triggered the push
|
||||
fetch-depth: 100
|
||||
persist-credentials: false
|
||||
|
||||
- name: Push to angular-robot upstream remote
|
||||
@@ -42,4 +43,4 @@ jobs:
|
||||
git remote -v
|
||||
|
||||
echo "Pushing $CURRENT_BRANCH from origin to $UPSTREAM_OWNER upstream..."
|
||||
git push upstream "$CURRENT_BRANCH" --force-with-lease
|
||||
git push upstream "$CURRENT_BRANCH"
|
||||
|
||||
Reference in New Issue
Block a user