Skip to content
play

GitHub Action

update-multiple-deps-action

v1.0.1 Latest version

update-multiple-deps-action

play

update-multiple-deps-action

Update multiple dependencies within a given repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: update-multiple-deps-action

uses: Zidious/[email protected]

Learn more about this action in Zidious/update-multiple-deps-action

Choose a version

update-multiple-deps-action

A GitHub Action to update multiple dependencies in a single PR

Inputs

Name Description Required Default
latest A comma separated list of dependencies to update to the @latest version false NA
next A comma separated list of dependencies to update to the @next version false NA

Note: latest or next must be provided as an input

Usage

name: Update Dependencies

on:
  schedule:
    - cron: "0 0 13 * *"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 16
      - uses: zidious/[email protected]
        with:
            latest: 'typescript,@types/node'
            next: 'react'
      - name: Create Pull Request with changes from update-multiple-deps-action
         uses: peter-evans/create-pull-request@v3
        with:
          token: ${{ secrets.PAT }}
          commit-message: 'chore: update dependencies'
          branch: robot-update-dependencies
          base: main
          title: 'chore: update depdencies'
          body: 'This PR updates dependencies'