Add GitHub Action to regenerate example_data when convert_output.R changes#229
Merged
Schiano-NOAA merged 2 commits intodevfrom Apr 9, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/nmfs-ost/stockplotr/sessions/16147f90-2416-4af0-a517-a1d297703e33 Co-authored-by: Schiano-NOAA <125507018+Schiano-NOAA@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Action to update example data on release
Add GitHub Action to regenerate example_data when convert_output.R changes
Apr 9, 2026
Collaborator
|
@copilot by using this action, is the script data-raw/DATASET.R unnecessary? |
Author
Not entirely —
The GitHub Action automates the same regeneration in CI, but keeping |
Contributor
Code Metrics Report
Reported by octocov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
data/example_data.rdahad no automated path to stay in sync whenconvert_output.Rwas updated — it required manual execution ofdata-raw/DATASET.R.Changes
.github/workflows/update-example-data.yml— new workflow that:mainwith path filterR/convert_output.R, plusworkflow_dispatchusethis) viar-lib/actionsexample_datausing the same pattern asdata-raw/DATASET.Rto preserve the correct object name in the.rda:data/example_data.rdaasgithub-actions[bot]with[skip ci]to avoid loops; skips the commit entirely if the data is unchangedcontents: writepermission to push back to the branch