fix: "misspell" misspelled, unify code block format #28
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
# This job updates the autograders on every push to main. | |
# Autograders are stored in `admin/autograders` in the CS106L AFS directory. | |
name: Update Autograders | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
# This line prevents this action from running in forks of the repository | |
if: github.repository == 'cs106l/cs106l-assignments' | |
steps: | |
- name: Deploy to AFS | |
env: | |
TOKEN: ${{ secrets.DEPLOY_TOKEN }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
curl -X POST "https://web.stanford.edu/class/cs106l/cgi-bin/deploy/?name=autograders" \ | |
-H "Token: $TOKEN" \ | |
-H "Github-Token: $GH_TOKEN" \ | |
--fail-with-body |