summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-lock.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml
index 5cd03bd..37aa705 100644
--- a/.github/workflows/update-lock.yaml
+++ b/.github/workflows/update-lock.yaml
@@ -57,7 +57,8 @@ jobs:
BRANCH: ${{ steps.branch.outputs.branch }}
run: |
if ! git diff --color=always --exit-code origin/main; then
- git push -u origin "$BRANCH"
+ git fetch origin "$BRANCH" || true
+ git push --force-with-lease -u origin "$BRANCH"
gh pr create \
--base main \