Skip to content

Commit b38dd66

Browse files
committed
AUTO: replace github workflow
1 parent 3fb5205 commit b38dd66

File tree

1 file changed

+31
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)