Custom action to check difference of 2 Gemfile.lock.
If there is a difference, it outputs the ANSI-colored diff and terminates with exit code 1.
# .github/workflows/gemfile-diff.yml
name: gemfile-diff
on:
pull_request:
paths:
- Gemfile
- Gemfile.lock
- Gemfile-7-0
- Gemfile-7-0.lock
push:
branches:
- main
paths:
- Gemfile
- Gemfile.lock
- Gemfile-7-0
- Gemfile-7-0.lock
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: r7kamura/gemfile-diff@v0
with:
gemfile_lock_a: Gemfile.lock
gemfile_lock_b: Gemfile-rails-7-0.lock
ignore:
actioncable
actionmailbox
actionmailer
actionpack
actiontext
actionview
activejob
activemodel
activerecord
activestorage
activesupport
digest
globalid
io-wait
mini_mime
net-imap
net-pop
net-protocol
net-smtp
rails
railties
scanf
strscan
timeout