-
Notifications
You must be signed in to change notification settings - Fork 688
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
Auto update h5p #12806
base: develop
Are you sure you want to change the base?
Auto update h5p #12806
Conversation
Put commit ref in external file. Update all static files for new build.
Build Artifacts
|
441a7df
to
e7cbb0f
Compare
I have converted this to a draft for now, we can test this action out on the test-actions repository first to avoid too much iteration here. |
e7cbb0f
to
33bd170
Compare
33bd170
to
5bc3d41
Compare
Did some testing on the test-actions repo to refine this, this should now be ready to go. See example PR there: learningequality/test-actions#45 |
print("No stored commit found, treating as new") | ||
has_changed = True | ||
# Set outputs for GitHub Actions | ||
with open(os.environ['GITHUB_OUTPUT'], 'a') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love all of this injected Python stuff, but this in particular is really neat to write to the env var as a file to speak to the GH action runner.
Summary
Reviewer guidance
This is an experiment to try to give dependabot regularity updating to our H5P bundled code.
If this works, we can try something similar for Bloom Reader - but that will be a little more involved, as we will have to update our fork of it as well.
The best way to test this will be to merge and run the action manually - so the main thing to look for here is that the updated files make sense, and that the action doesn't have any obvious flaws.
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)