-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.28 KB
/
update-canvas-sdk-context.yml
File metadata and controls
44 lines (35 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Update Canvas SDK Context
on:
schedule:
# Every Monday at 10am UTC
- cron: '0 10 * * 1'
workflow_dispatch: # Allow manual triggering
permissions:
contents: write
jobs:
update-context:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download Canvas SDK context
run: |
# Create directory if it doesn't exist
mkdir -p canvas-plugin-assistant/skills/canvas-sdk
# Download the context file
curl -sSL https://raw.githubusercontent.com/Medical-Software-Foundation/canvas/refs/heads/main/coding_agent_context.txt \
-o canvas-plugin-assistant/skills/canvas-sdk/coding_agent_context.txt
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit and push if changes
run: |
git add canvas-plugin-assistant/skills/canvas-sdk/coding_agent_context.txt
# Check if there are changes to commit
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Update Canvas SDK context [automated]"
git push
fi