diff --git a/gh-agent-workflows/update-pr-body/README.md b/gh-agent-workflows/update-pr-body/README.md index 76ec02ff..b3cca384 100644 --- a/gh-agent-workflows/update-pr-body/README.md +++ b/gh-agent-workflows/update-pr-body/README.md @@ -16,7 +16,7 @@ See [example.yml](example.yml) for the full workflow file. | Event | Types | Condition | | --- | --- | --- | -| `pull_request` | `opened`, `synchronize`, `reopened`, `ready_for_review` | PR is not a draft | +| `pull_request` | `opened`, `synchronize`, `reopened`, `ready_for_review` | PR is not a draft and does not have `skip-pr-body-update` label | ## Inputs diff --git a/gh-agent-workflows/update-pr-body/example.yml b/gh-agent-workflows/update-pr-body/example.yml index 75c37cd6..ea28b6a7 100644 --- a/gh-agent-workflows/update-pr-body/example.yml +++ b/gh-agent-workflows/update-pr-body/example.yml @@ -9,7 +9,7 @@ permissions: jobs: run: - if: github.event.pull_request.draft == false + if: github.event.pull_request.draft == false && !contains(github.event.pull_request.labels.*.name, 'skip-pr-body-update') uses: elastic/ai-github-actions/.github/workflows/gh-aw-update-pr-body.lock.yml@v0 secrets: COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}