Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
search

GitHub Action

Gem Compare

v1.0.0

Gem Compare

search

Gem Compare

Compare different gem versions

Installation

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

              

- name: Gem Compare

uses: dentarg/[email protected]

Learn more about this action in dentarg/gem-compare

Choose a version

Gem Compare

For pull requests with a title matching /Bump (.+) from (.+) to (.+)/, it posts a comment with the output from gem compare and gem compare --diff. Uses https://rubygems.org/gems/gem-compare (https://github.com/fedora-ruby/gem-compare).

To use in your repo, add a workflow like this:

name: Gem Compare

on:
  pull_request:
    types:
      - opened
      - reopened

jobs:
  compare:
    if: startsWith(github.head_ref, 'dependabot/bundler/')
    runs-on: ubuntu-latest
    steps:
      - uses: dentarg/gem-compare@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}