ci: harden pull request workflow execution

This commit is contained in:
Ogulcan Celik 2026-07-26 15:30:48 +03:00
parent 65713cefcc
commit e1a32e5865
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,7 @@ jobs:
conventional-commits:
if: github.event_name != 'push' || github.ref_name == 'master'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
@ -36,7 +37,9 @@ jobs:
- name: Validate PR title
if: github.event_name == 'pull_request'
run: python3 scripts/conventional_commits.py "${{ github.event.pull_request.title }}"
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: python3 scripts/conventional_commits.py "$PR_TITLE"
check:
name: check (${{ matrix.os }})

View File

@ -37,6 +37,7 @@ jobs:
flake-check:
name: flake check
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6