Skip to content

feat: update grading workflows #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 29, 2025
Prev Previous commit
Next Next commit
refactor: use yaml styling for template-vars
  • Loading branch information
FidelusAleksander committed Apr 17, 2025
commit 6d0c48e676a8871e5d82fa47d2a13080b04ebbfa
25 changes: 9 additions & 16 deletions .github/workflows/3-copilot-edits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,17 @@ jobs:

- name: Build message - step results
id: build-message-step-results
uses: skills/action-text-variables@v1
uses: skills/action-text-variables@use-yaml-variables
with:
template-file: exercise-toolkit/markdown-templates/step-feedback/step-results-table.md
template-vars: >
{
"step_number": 3,
"passed": ${{ !contains(steps.*.outcome, 'failure') }},
"results_table": [
{
"name": "Check app.js for participant info",
"passed": ${{ steps.check-app-js.outcome == 'success' }}
},
{
"name": "Participant styling updated in styles.css",
"passed": ${{ steps.check-styles.outcome == 'success' }}
}
]
}
template-vars: |
step_number: 3
passed: ${{ !contains(steps.*.outcome, 'failure') }}
results_table:
- name: "Check app.js for participant info"
passed: ${{ steps.check-app-js.outcome == 'success' }}
- name: "Participant styling updated in styles.css"
passed: ${{ steps.check-styles.outcome == 'success' }}

- name: Create comment - step results
run: |
Expand Down
Loading