File tree Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Expand file tree Collapse file tree 1 file changed +43
-1
lines changed Original file line number Diff line number Diff line change 1
- {%- assign repo = include.repo | default: site.github.repository_owner | append: "/" | append: site.github.repository_name -%}
1
+ # .github/workflows/copilot-badge-updater.yml
2
+ name: 📜 Copilot Badge Updater
3
+
4
+ on:
5
+ issues:
6
+ types: [opened]
7
+ # optional: filter by label
8
+ # filters:
9
+ # labels: ["auto-badge"]
10
+
11
+ jobs:
12
+ assign-and-update:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ issues: write
16
+ contents: write
17
+
18
+ steps:
19
+ - name: Assign issue to Copilot
20
+ uses: peter-evans/assign-issue@v3
21
+ with:
22
+ assignees: github-actions[bot]
23
+
24
+ - name: Checkout repo
25
+ uses: actions/checkout@v3
26
+
27
+ - name: Generate Updated Badge
28
+ run: |
29
+ # invoke Copilot via GitHub CLI (beta)
30
+ gh issue comment ${{ github.event.issue.number }} \
31
+ --body "/copilot edit: update badge for workflow changes"
32
+
33
+ - name: Wait for Copilot Commit
34
+ run: |
35
+ echo "⏳ Waiting for Copilot agent to commit changes…"
36
+ sleep 30 # adjust as needed
37
+
38
+ - name: Create Pull Request
39
+ uses: peter-evans/create-pull-request@v5
40
+ with:
41
+ commit-message: "chore(ci): Copilot-updated badge"
42
+ title: "chore: badge update via Copilot"
43
+ body: "This PR was created by Copilot in response to #${{ github.event.issue.number }}."{%- assign repo = include.repo | default: site.github.repository_owner | append: "/" | append: site.github.repository_name -%}
2
44
{%- assign file = include.file | default: "mythic-sigil-pipeline.yml" -%}
3
45
{%- assign branch = include.branch | default: "main" -%}
4
46
{%- assign label = include.label | default: "Sigil Pipeline" -%}
You can’t perform that action at this time.
0 commit comments