Add workflow to regenerate env files after dependency updates#1420
Open
rosspeili wants to merge 3 commits into
Open
Add workflow to regenerate env files after dependency updates#1420rosspeili wants to merge 3 commits into
rosspeili wants to merge 3 commits into
Conversation
…mlib#1332) Run create-env-files.sh when deps inputs change on pull requests or main, with manual workflow_dispatch as a fallback. Document the automation in CONTRIBUTING.md.
Avoid gh pr create on workflow_dispatch, which fails when the repository disallows GitHub Actions from opening pull requests. Reserve follow-up PR creation for post-merge push events only.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the CONTRIBUTING.md file to document the regenerate-env-files GitHub Actions workflow, detailing how it automatically regenerates environment files when dependencies change and explaining the repository settings required for it to function correctly. There are no review comments, so I have no feedback to provide.
Pass GitHub context through environment variables for actionlint, wrap long YAML lines for yamllint, and normalize line endings to LF.
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.
Dependabot updates dev_tools/requirements/deps/, but can't run create-env-files.sh to rebuild the compiled env files. This PR adds a workflow that does that automatically, as requested by 1332.
On PRs it pushes regenerated env files back to the same branch, after a merge to main it can open a follow-up PR if needed. Manual runs from actions push straight to the branch you pick. CONTRIBUTING.md documents this also now and notes upstream needs the "Allow GitHub Actions to create pull requests" setting for the post-merge PR path.
Fixes #1332