Skip to content

Commit 53a8ff5

Browse files
committed
AUTO: Added .canvas file and github workflow
1 parent 55e9e81 commit 53a8ff5

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.canvas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
:lessons:
3+
- :id: 73694
4+
:course_id: 3280
5+
:canvas_url: https://learning.flatironschool.com/courses/3280/assignments/73694
6+
:type: assignment
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Sync with Canvas HTML
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
paths:
7+
- "README.md"
8+
9+
jobs:
10+
sync:
11+
name: Sync with Canvas
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: 2.6
22+
23+
- name: Install github-to-canvas
24+
run: gem install github-to-canvas
25+
26+
# Secret stored in learn-co-curriculum Settings/Secrets
27+
- name: Sync from .canvas file
28+
run: github-to-canvas -a -lr --forkable --contains-html
29+
env:
30+
CANVAS_API_KEY: ${{ secrets.CANVAS_API_KEY }}
31+
CANVAS_API_PATH: ${{ secrets.CANVAS_API_PATH }}

0 commit comments

Comments
 (0)