MAINT: Avoiding useless execution of create-github-release & publish-to-pypi workflows for every commit on the main branch #51
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: 'PR Title Check' | |
on: | |
pull_request: | |
# check when PR | |
# * is created, | |
# * title is edited, and | |
# * new commits are added (to ensure failing title blocks merging) | |
types: [opened, reopened, edited, synchronize] | |
jobs: | |
title-check: | |
name: Title check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Check PR title | |
env: | |
PR_TITLE: ${{ github.event.pull_request.title }} | |
run: python .github/scripts/check_pr_title.py |