fix(ci): make workflow_dispatch functional and prevent runtime errors

- Add github.event_name == 'workflow_dispatch' to allow manual testing
- Add null safety check for github.event.pull_request to prevent runtime errors
- Maintains all existing Dependabot detection while fixing manual trigger capability

Co-authored-by: ntindle <8845353+ntindle@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-18 21:53:16 +00:00
parent 67dab25ec7
commit e7c8c875b7

View File

@@ -18,10 +18,11 @@ on:
jobs:
dependabot-review:
# Only run on Dependabot PRs
# Only run on Dependabot PRs or manual dispatch
if: |
github.event_name == 'workflow_dispatch' ||
github.actor == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'dependabot[bot]'
(github.event.pull_request && github.event.pull_request.user.login == 'dependabot[bot]')
runs-on: ubuntu-latest
timeout-minutes: 30