Skip to content

@emmabellotti started the Git/GitHub interactive course #428

@emmabellotti started the Git/GitHub interactive course

@emmabellotti started the Git/GitHub interactive course #428

Workflow file for this run

name: Course Milestone Router
concurrency:
group: course-${{ github.event.issue.number }}
cancel-in-progress: false
on:
issue_comment:
types: [created, edited]
jobs:
route:
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, 'done') && contains(github.event.issue.labels.*.name, 'newparticipant') }}
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout router files
uses: actions/checkout@v5
with:
sparse-checkout: |
.github/scripts
.course_config/questions
content/steps
sparse-checkout-cone-mode: false
- name: Parse /done command
id: parse
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_PAT_CROSSREPO }}
result-encoding: string
script: |
const run = require('./.github/scripts/parse.js');
return await run({ github, context, core, env: process.env });
- name: Run step validator
id: milestone
if: steps.parse.outputs.result != '' && steps.parse.outputs.result != '-1'
uses: actions/github-script@v7
env:
MILESTONE: ${{ steps.parse.outputs.result }}
with:
github-token: ${{ secrets.GH_PAT_CROSSREPO }}
script: |
const step = process.env.MILESTONE;
const run = require(`./.github/scripts/${step}.js`);
return await run({ github, context, core, env: process.env });
- name: Notify on workflow failure
if: failure() && steps.parse.outputs.result != '' && steps.parse.outputs.result != '-1'
uses: actions/github-script@v7
env:
MILESTONE: ${{ steps.parse.outputs.result }}
with:
github-token: ${{ secrets.GH_PAT_CROSSREPO }}
script: |
const run = require('./.github/scripts/fail.js');
return await run({ github, context, core, env: process.env });