fix: add condition to prevent bot-triggered PR AI slop review

This commit is contained in:
Tunglies
2026-05-22 19:08:40 +08:00
parent e48e24bb7e
commit 2c7877a574
2 changed files with 2 additions and 26 deletions
-26
View File
@@ -1,26 +0,0 @@
name: "Copilot Setup Steps"
# This workflow configures the environment for GitHub Copilot Agent with gh-aw MCP server
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
# The job MUST be called 'copilot-setup-steps' to be recognized by GitHub Copilot Agent
copilot-setup-steps:
runs-on: ubuntu-latest
# Set minimal permissions for setup steps
# Copilot Agent receives its own token with appropriate permissions
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install gh-aw extension
uses: github/gh-aw-actions/setup-cli@efa55847f72aadb03490d955263ff911bf758700 # v0.74.8
with:
version: v0.74.8
+2
View File
@@ -10,6 +10,8 @@ on:
types: [opened, reopened, synchronize]
workflow_dispatch:
if: ${{ !endsWith(github.actor, '[bot]') }}
checkout: false
permissions:
issues: read