chore(deps-dev): bump globals from 15.12.0 to 15.14.0 #210
Workflow file for this run
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: "Lint PR" | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: | |
lint-title: | |
name: Validate PR Title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
check-scope: | |
name: Validate PR Scope | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wrong Branch Scope | |
run: | | |
echo "Checking PR source and target branches" | |
PR_BASE_BRANCH=$(jq -r .pull_request.base.ref < "${GITHUB_EVENT_PATH}") | |
PR_HEAD_BRANCH=$(jq -r .pull_request.head.ref < "${GITHUB_EVENT_PATH}") | |
echo "PR Base Branch: $PR_BASE_BRANCH" | |
echo "PR Head Branch: $PR_HEAD_BRANCH" | |
if [ "$PR_BASE_BRANCH" == "master" ] && [ "$PR_HEAD_BRANCH" != "dev" ]; then | |
echo "Error: The branch '$PR_HEAD_BRANCH' should not point to the 'master' branch." | |
echo "Error: Please change the base branch to 'dev'." | |
exit 1 | |
else | |
echo "Branch check passed." | |
fi |