Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/3326
Description (What does it do?)
This PR adds a Github Action which creates a weekly Release with the newly created CSV file.
If this step fails:
poetry run python -m ocw_oer_export.cli --create_csv --output_path="./private/output/ocw_oer_export.csv"
Then it creates a Slack alert for the
notifications-ocw-oer-export
channel, such as this:Although the event would be
schedule
orpush
, notpull_request
(that was for testing purposes).All the releases would be found here: https://github.com/mitodl/ocw_oer_export/releases
The latest release would be found on this URL: https://github.com/mitodl/ocw_oer_export/releases/tag/latest
The release tags follow the semversioning pattern:
vx.y.z-csv
(where z would be incremented every week).Eg.
v1.0.1-csv
,v1.0.2-csv
.How can this be tested?
Feel free to produce errors on this PR as commit and then check for Slack notifications. You can also check from the error I produced (from the commits) and its Slack notification (Check the existing Actions on the repo)
The steps to run the program are same as before, but that won't test the Github Actions.