Skip to content

Conversation

@FidelusAleksander
Copy link
Owner

@FidelusAleksander FidelusAleksander commented Apr 17, 2025

image

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

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

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.

3 participants