diff --git a/.github/workflows/markdown_equations.yml b/.github/workflows/markdown_equations.yml index 618ec2a96a77..bb44c8b99503 100644 --- a/.github/workflows/markdown_equations.yml +++ b/.github/workflows/markdown_equations.yml @@ -96,6 +96,11 @@ jobs: git config --local user.name "stdlib-bot" timeout-minutes: 5 + # Disable Git hooks: + - name: 'Disable Git hooks' + run: | + rm -rf .git/hooks + # Import GPG key to sign commits: - name: 'Import GPG key to sign commits' # Pin action to full length commit SHA @@ -177,6 +182,9 @@ jobs: # Fetch the branch first so that --force-with-lease in the subsequent push has a local tracking reference and can verify the remote state: git fetch origin markdown-insert-equations 2>/dev/null || true gh api -X DELETE repos/stdlib-js/stdlib/git/refs/heads/markdown-insert-equations 2>/dev/null || true + + # Delete the local tracking branch so that --force-with-lease does not reject the push due to stale info: + git branch -dr origin/markdown-insert-equations 2>/dev/null || true timeout-minutes: 5 # Create a pull request with the updated equations: