Skip to content

GitHub Action to bump multiple dependencies with dependabot in a single pull request

License

Notifications You must be signed in to change notification settings

marcoroth/dependabot-bump-together-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

Update 2023-08-24

Looks like Dependabot introduced grouped Dependabot updates which makes this GitHub Action redundant. Check out their announcement here:

https://github.blog/2023-08-24-a-faster-way-to-manage-version-updates-with-dependabot/

Dependabot Bump Together GitHub Action

GitHub Action to bump multiple dependencies from either the same or mulitple package managers with Dependabot in a single pull request.

Example usage

Here is an example how to use this action:

name: Dependabot
on:
  workflow_dispatch:
  schedule:
    - cron: "0 0 * * *"
jobs:
  check-dependencies:
    runs-on: ubuntu-latest
    steps:
      - uses: marcoroth/dependabot-bump-together-action@v0.3.2
        with:
          dependencies: dependency_1, dependency_2
          package_managers: bundler, npm_and_yarn, pip
          directory: /
          branch: main
          username: x-access-token
          token: ${{ secrets.GITHUB_TOKEN }}

Inputs

These options can be provided via with: in the workflow file.

dependencies

Required: Comma-separated list of the dependencies Dependabot should bump together

package_managers

Required: Comma-separated list of the package managers Dependabot should update.

Default value: bundler, npm_and_yarn, pip

The available options are:

  • bundler
  • pip (includes pipenv)
  • npm_and_yarn
  • maven
  • gradle
  • cargo
  • hex
  • composer
  • nuget
  • dep
  • go_modules
  • elm
  • submodules
  • docker
  • terraform

directory

Required: Directory in which the project to update lives

Default value: /

branch

Required: The branch Dependabot runs against in your repository.

Default value: main

username

Required: The user to create the pull request

Default value: x-access-token

token

Required: A GitHub Access Token with permission to create the pull request and access potential private repos Dependabot should bump.

Ressources

This GitHub Action depends on the dependabot/dependabot-core Docker Image and uses a modified version of the dependabot/dependabot-script update-script.rb to bump the dependencies.