You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workshop/07-your-first-workflow.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,28 @@ Compile it after creating it.
39
39
40
40
Review the agent's edit, then continue. Prefer this path over hand-editing each line.
41
41
42
+
**What the agent created** — the generated file should look roughly like this:
43
+
44
+
```yaml
45
+
---
46
+
name: Daily Report Status
47
+
on:
48
+
schedule:
49
+
- cron: "0 9 * * *"# runs every day at 09:00 UTC
50
+
workflow_dispatch: {} # also allows manual runs
51
+
permissions:
52
+
contents: read
53
+
issues: read
54
+
copilot-requests: write # required to call the AI model
55
+
safe-outputs:
56
+
- key: create-issue # the only write action the agent may perform
57
+
---
58
+
59
+
Generate an activity report for this repository and post it as a new issue.
60
+
```
61
+
62
+
The **frontmatter** tells GitHub Actions when to run, what permissions the agent has, and which write action it may use (`create-issue`). The **task brief** below the second `---` is what the AI agent reads and acts on.
0 commit comments