Skip to content
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

Trigger autograding with repository_dispatch after incrementing steps #9

Merged
merged 1 commit into from
May 29, 2024

Conversation

smashwilson
Copy link
Contributor

Port over the autograding fix from github-education-resources/primer-copilot#12.

Tasks performed by the GitHub Actions GITHUB_TOKEN, such as commit pushes, do not create new workflow runs. This means that the commit and push performed by our skills/action-update-step@v2 steps are not triggering GitHub Classroom's autograding workflow, which in turn is preventing learners from having their Experience marked as complete after they finish the final step.

The autograding workflow is created with a repository_dispatch trigger. This modifies our Actions workflows to manually create a repository_dispatch event on the repository after the step update commit has been pushed, causing autograding to run after the -step.txt file has received its final update, at which point it will be able to succeed.

@smashwilson
Copy link
Contributor Author

I've verified that these changes work as expected by using them in my own fork first: https://github.com/Exp-Communicate-Using-Markdown-Cohort-1/series-communicate-using-markdown-smashwilson/.

@smashwilson smashwilson merged commit 3ac8c6c into main May 29, 2024
@smashwilson smashwilson deleted the trigger-autograding branch May 29, 2024 16:14
@kevinleonardowakeup
Copy link

hello world

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