mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
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:
5
.github/workflows/claude-dependabot.yml
vendored
5
.github/workflows/claude-dependabot.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user