8000 Use `--force-with-lease` · TheAlgorithms/scripts@f5dfb90 · GitHub
[go: up one dir, main page]

Skip to content

Commit f5dfb90

Browse files
authored
Use --force-with-lease
1 parent ada8bfd commit f5dfb90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

directory_md/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
git add DIRECTORY.md
5959
6060
git commit -m "docs: update DIRECTORY.md" || true
61-
git push origin ${{ inputs.branch-name }}:${{ inputs.branch-name }} --force
61+
git push origin ${{ inputs.branch-name }}:${{ inputs.branch-name }} --force-with-lease
6262
6363
gh pr create --base ${GITHUB_REF##*/} --head ${{ inputs.branch-name }} --title 'docs: updating `DIRECTORY.md`' --body 'Updated the `DIRECTORY.md` file (see the diff. for changes).' || true
6464
# Using `true` will make sure no errors are displayed even if there's a PR created.

0 commit comments

Comments
 (0)
0