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
10 changes: 3 additions & 7 deletions .github/workflows/pr-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ on:

jobs:
pr-gate:
# 1. for commits on main: no gating needed
# 2. for workflow_dispatch: this can only be triggered by users with write access
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
# 1. for commits on main: no gating needed
# 2. for workflow_dispatch: this can only be triggered by users with write access
- name: Skip PR-Gate for non-PR events
if: github.event_name != 'pull_request'
run: |
echo "Not a pull_request event; skipping PR-Gate checks."
exit 0
- name: Fetch latest PR info
id: pr
uses: actions/github-script@v7
Expand Down
Loading