Skip to content

Commit

Permalink
More robust reset
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Mar 4, 2024
1 parent 6c92efd commit 74141aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
- name: Combine the last 2 commits into one
# See: https://stackoverflow.com/a/26172014
run: |

Check failure on line 87 in .github/workflows/docs.yaml

View workflow job for this annotation

GitHub Actions / lint / lint-github-action

shellcheck reported issue in this script: SC2046:warning:1:18: Quote this to prevent word splitting
git reset --soft HEAD~2
git commit --message "${{ env.PR_COMMIT_MSG }}"
git reset --soft $(git merge-base main HEAD)
- name: Push new commit history to PR
run: |
git commit --message "${{ env.PR_COMMIT_MSG }}"
git push --force

0 comments on commit 74141aa

Please sign in to comment.