This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
GitHub Classroom Workflow #6
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: GitHub Classroom Workflow | |
on: | |
- push | |
- workflow_dispatch | |
permissions: | |
checks: write | |
actions: read | |
contents: read | |
jobs: | |
build: | |
name: Autograding | |
runs-on: ubuntu-latest | |
if: github.actor != 'github-classroom[bot]' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create file for setting env vars | |
# https://github.com/education/autograding/issues/69#issuecomment-1497674655 | |
# https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow | |
env: | |
ANSWERS_SECRET_PASSPHRASE: ${{ secrets.ANSWERS_SECRET_PASSPHRASE }} | |
run: | | |
echo "#!/bin/sh" > setenv.sh | |
echo "export ANSWERS_SECRET_PASSPHRASE=\"$ANSWERS_SECRET_PASSPHRASE\"" >> setenv.sh | |
chmod +x setenv.sh | |
- uses: education/autograding@v1 |