Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

GitHub Classroom Workflow #8

GitHub Classroom Workflow

GitHub Classroom Workflow #8

Workflow file for this run

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