Skip to content

Add workflow to regenerate env files after dependency updates#1420

Open
rosspeili wants to merge 3 commits into
quantumlib:mainfrom
rosspeili:feature/issue-1332-dependabot-env-workflow
Open

Add workflow to regenerate env files after dependency updates#1420
rosspeili wants to merge 3 commits into
quantumlib:mainfrom
rosspeili:feature/issue-1332-dependabot-env-workflow

Conversation

@rosspeili

@rosspeili rosspeili commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

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

…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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@mhucka mhucka added priority/after-1.8.1 area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics priority/after-1.8.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add workflow to run create-env-files.sh when Dependabot changes dependencies

2 participants