github: Adjust watchdog run logic (again)

This commit is contained in:
Bjørn Erik Pedersen
2025-11-19 15:59:33 +01:00
parent 51d77a6ca8
commit 5f9c3a3e4c
+1 -2
View File
@@ -2,14 +2,13 @@ name: AI Detection
on: on:
# Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks) # Use pull_request_target instead of pull_request (we need the secrets.OPENAI_API_KEY to be available for forks)
pull_request_target: pull_request_target:
types: [open, ready_for_review] types: [open]
permissions: permissions:
contents: read contents: read
pull-requests: write pull-requests: write
jobs: jobs:
detect-ai: detect-ai:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps: steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: AI Watchdog - name: AI Watchdog