From 90dc19683c991fa5dc33b669a9c61531720bdbad Mon Sep 17 00:00:00 2001 From: officiallyanee Date: Sat, 18 Jul 2026 23:24:26 +0530 Subject: [PATCH] build: disable git hooks and delete tracking branch before push in markdown equations --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .github/workflows/markdown_equations.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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: