Files
api/.github/workflows/copilot.yml
T
Jeppe Bundgaard 20071166f8 Switch CI to self-hosted runners
Updated all GitHub Actions workflows to use self-hosted runners instead of `ubuntu-latest`. This change ensures better control over the CI environment and aligns with internal infrastructure requirements.
2026-06-02 10:36:22 +02:00

40 lines
1.1 KiB
YAML

name: Copilot Task Dispatcher
on:
workflow_dispatch:
inputs:
task:
description: 'The task description for Copilot'
required: true
type: string
jobs:
assign-task:
runs-on: [self-hosted, Linux, X64, default]
permissions:
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create GitHub Issue for Copilot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TASK: ${{ github.event.inputs.task }}
ACTOR: ${{ github.actor }}
run: |
BODY="$(cat <<EOF
Assigned to Copilot by @$ACTOR.
Task
$TASK
AI workflow notes
- Generated assistant metadata is synchronized from the canonical AI workflow bundle.
- Run `node scripts/sync-ai-workflow.mjs --check` if assistant metadata changed.
EOF
)"
gh issue create \
--title "Copilot Task: $TASK" \
--body "$BODY" \
--label "copilot-task"