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
Merged

feat: update grading workflows #2

merged 10 commits into from
Apr 29, 2025

Conversation

FidelusAleksander
Copy link
Owner

@FidelusAleksander FidelusAleksander commented Apr 17, 2025

image

file="src/static/app.js"
keyphrase='participant'
minimum_occurences=3
found_occurences=$(grep -o "$keyphrase" "$file" | wc -l)
if [ "$found_occurences" -lt "$minimum_occurences" ]; then
checks=$(echo $checks | jq '.app_js.passed = false')
checks=$(echo $checks | jq '.app_js.message = "Please use Copilot to update the web application activity cards to show participant info."')
echo "::error::Please use Copilot to update the web application activity cards to show participant info."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just leave this out

template-vars: |
next_step_number=4

- name: Update comment - step finished
if: ${{ !contains(steps.*.outcome, 'failure') }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this if should be removed

@@ -124,21 +101,16 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMENT_BODY: ${{ steps.build-message-step-results.outputs.updated-text }}

- name: Fail job if not all checks passed
if: steps.check-user-work.outputs.passed == 'false'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to stay to fail the grading job. I think the if should switch to ${{ !contains(steps.*.outcome, 'failure') }}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check should be without the ! negation though, ${{ contains(steps.*.outcome, 'failure') }}

@FidelusAleksander FidelusAleksander changed the title Grading workflows example feat: update grading workflows Apr 29, 2025
@FidelusAleksander FidelusAleksander merged commit 8e532eb into main Apr 29, 2025
@FidelusAleksander FidelusAleksander deleted the grading-workflows branch April 29, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants