diff options
| author | seth <[email protected]> | 2024-04-07 03:49:03 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-07 03:49:03 -0400 |
| commit | 2cbb0561449d0d3c9681b853cb7c622a08ca7873 (patch) | |
| tree | 2db2de112052449b340d2c7869a9c8c0b864e312 /.github/workflows/update-lock.yaml | |
| parent | 6388308f9e9c8a8fbfdff54b30adf486fa292cf9 (diff) | |
actions: force push PR branch if needed
Diffstat (limited to '.github/workflows/update-lock.yaml')
| -rw-r--r-- | .github/workflows/update-lock.yaml | 3 |
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 \ |
