Skip to content

Commit a27b588

Browse files
committed
AUTO: Added .canvas and .github
1 parent a74da4d commit a27b588

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.canvas

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
:lessons:
3+
- :id: 68105
4+
:course_id: 3265
5+
:canvas_url: https://learning.flatironschool.com/courses/3265/assignments/68105
6+
:type: assignment

.github/workflows/canvas-sync.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Sync with Canvas
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
29+
env:
30+
CANVAS_API_KEY: ${{ secrets.CANVAS_API_KEY }}
31+
CANVAS_API_PATH: ${{ secrets.CANVAS_API_PATH }}

0 commit comments

Comments
 (0)