Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/markdown_equations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down