mirror of
https://github.com/nextcloud/server.git
synced 2026-07-11 18:47:17 -04:00
ci: Update policy check to org-latest
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
521f59caa5
commit
9f7f5a4dc3
1 changed files with 9 additions and 3 deletions
12
.github/workflows/ai-policy.yml
vendored
12
.github/workflows/ai-policy.yml
vendored
|
|
@ -32,7 +32,9 @@ jobs:
|
|||
- name: Collect PR commit messages
|
||||
id: collect
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
|
||||
# Fall back to the default token when the PAT is unavailable
|
||||
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
|
||||
COMMITS_URL: ${{ github.event.pull_request.commits_url }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
|
@ -125,7 +127,9 @@ jobs:
|
|||
- name: Create 'AI assisted' label if absent
|
||||
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
|
||||
# Fall back to the default token when the PAT is unavailable
|
||||
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
|
||||
run: |
|
||||
gh api "repos/${{ github.repository }}/labels" \
|
||||
--method POST \
|
||||
|
|
@ -137,7 +141,9 @@ jobs:
|
|||
- name: Label PR as AI assisted
|
||||
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
|
||||
# Fall back to the default token when the PAT is unavailable
|
||||
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
|
||||
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
|
||||
run: |
|
||||
gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" \
|
||||
--method POST \
|
||||
|
|
|
|||
Loading…
Reference in a new issue