build(deps): bump katex from 0.16.19 to 0.16.21 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Target Branch | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
check_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check PR target | |
run: | | |
if [[ "${{ github.actor }}" == "ZL-Asica" || "${{ github.actor }}" == "dependabot" ]]; then | |
exit 0 | |
fi | |
if [[ "${{ github.event.pull_request.base.ref }}" == "main" || "${{ github.event.pull_request.base.ref }}" == "blog" ]]; then | |
echo "::error::This PR targets the wrong branch (${ {github.event.pull_request.base.ref} }). Please change the target branch to 'dev'." | |
exit 1 | |
else | |
echo "Target branch is valid (${ {github.event.pull_request.base.ref} })." | |
fi |