mirror of
https://hub.gitmirror.com/https://github.com/gradle/actions.git
synced 2025-10-27 16:09:59 +08:00
878 B
878 B
How to merge a Dependabot PR
The "distribution" for a GitHub Action is checked into the repository itself.
In the case of these actions, the transpiled sources are committed to the dist directory.
Any production dependencies are inlined into the distribution.
So if a Dependabot PR updates a production dependency (or a dev dependency that changes the distribution, like the Typescript compiler),
then a manual step is required to rebuild the dist and commit.
The simplest process to follow is:
- Checkout the dependabot branch locally eg:
git checkout dependabot/npm_and_yarn/actions/github-5.1.0 - In the
sourcesdirectory, runnpm installto download NPM dependencies - In the
sourcesdirectory, runnpm run buildto regenerate the distribution - Push the changes to the dependabot branch
- If/when the checks pass, you can merge the dependabot PR