Skip to content

About

Action which updates dependencies automatically

Topics

Resources

Code of conduct

Stars

22 stars

Watchers

24 watching

Forks

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

Latest commit

 

History

191 Commits

Folders and files

Repository files navigation

depup - Action which updates dependencies automatically

Test reviewdog depup release GitHub release (latest SemVer) action-bumpr supported

depup action updates version in a given file automatically.

demo

Supported patterns example:

REVIEWDOG_VERSION=0.1.0
# v prefix is supported as well.
REVIEWDOG_VERSION=v0.1.0
# Dockerfile sample
ENV REVIEWDOG_VERSION=0.1.0
# space is supported as well.
ENV REVIEWDOG_VERSION 0.1.0
ARG REVIEWDOG_VERSION=0.1.0
# yaml sample
yaml:
  REVIEWDOG_VERSION: 0.1.0

demo: #4

Inputs

inputs:
  github_token:
    description: "GITHUB_TOKEN to get latest version with GitHub Release API"
    default: "${{ github.token }}"
  file:
    description: "target file"
    required: true
  version_name:
    description: "target version name. e.g. REVIEWDOG_VERSION"
    required: true
  repo:
    description: "target GitHub repository. e.g. reviewdog/reviewdog"
    required: true
  tag:
    description: "Check tags instead of releases."
    default: "false"
    required: false

Example usage

name: depup
on:
  schedule:
    - cron: "14 14 * * *"
  workflow_dispatch:

jobs:
  reviewdog:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

      - uses: reviewdog/action-depup@94a1aaf4e4923064019214b48a43276218af7ad5 # v1.6.4
        id: depup
        with:
          file: testdata/testfile
          version_name: REVIEWDOG_VERSION
          repo: reviewdog/reviewdog

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@18f7dc018cc2cd597073088f7c7591b9d1c02672 # v3.14.0
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          title: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}"
          commit-message: "chore(deps): update ${{ steps.depup.outputs.repo }} to ${{ steps.depup.outputs.latest }}"
          body: |
            Update ${{ steps.depup.outputs.repo }} to [${{ steps.depup.outputs.latest }}](https://github.com/${{ steps.depup.outputs.repo }}/releases/tag/v${{ steps.depup.outputs.latest }})

            This PR is auto generated by [depup workflow](https://github.com/${{ github.repository }}/actions?query=workflow%3A${{ github.workflow }}).
          branch: depup/${{ steps.depup.outputs.repo }}

Run depup, and then create PR

If you want to create a PR after, you can use reviewdog/action-depup/with-pr@v1 action.

name: depup
on:
  schedule:
    - cron: "14 14 * * *"
  workflow_dispatch:

jobs:
  reviewdog:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
      - uses: reviewdog/action-depup/with-pr@94a1aaf4e4923064019214b48a43276218af7ad5 # v1.6.4
        with:
          file: testdata/testfile
          version_name: REVIEWDOG_VERSION
          repo: reviewdog/reviewdog

About

Action which updates dependencies automatically

Topics

Resources

Code of conduct

Stars

22 stars

Watchers

24 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages