update README #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync with Canvas | |
on: | |
push: | |
branches: [master, main] | |
paths: | |
- "README.md" | |
jobs: | |
sync: | |
name: Sync with Canvas | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.6 | |
- name: Install github-to-canvas | |
run: gem install github-to-canvas | |
# Secret stored in learn-co-curriculum Settings/Secrets | |
- name: Sync from .canvas file | |
run: github-to-canvas -a -lr | |
env: | |
CANVAS_API_KEY: ${{ secrets.CANVAS_API_KEY }} | |
CANVAS_API_PATH: ${{ secrets.CANVAS_API_PATH }} |