Skip to content

Merge pull request #262 from NBISweden/git-checkout #357

Merge pull request #262 from NBISweden/git-checkout

Merge pull request #262 from NBISweden/git-checkout #357

Workflow file for this run

name: canvas-upload
on:
workflow_dispatch:
branches:
- main
- devel
push:
paths:
- 'pages/*.md'
- 'pages/*/*.md'
- 'pages/upload-page-to-canvas.sh'
branches:
- main
- devel
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Upload pages
env:
API_TOKEN: ${{ secrets.CANVAS_API_TOKEN }}
run: |
docker pull pandoc/latex
for FILE in $(find pages -name '*.md' ! -name "README.md");
do
bash pages/upload-page-to-canvas.sh "$FILE" "$API_TOKEN"
done