Comments (5)
Hey, thanks for the issue.
I don't thing the problem is in the code, since the Parsing
class seems to work with the output you provided.
>> require_relative 'parsing'
true
>> outputs = <<-S
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies................
Outdated gems included in the bundle:
* wkhtmltopdf-heroku (newest 2.12.5.0, installed 2.12.4.0) in group "default"
S
"Fetching gem metadata from https://rubygems.org/.........\nFetching gem metadata from https://rubygems.org/.\nResolving dependencies................\nOutdated gems included in the bundle:\n * wkhtmltopdf-heroku (newest 2.12.5.0, installed 2.12.4.0) in group \"default\"\n"
>> parsing = Parsing.new(outputs)
#<Parsing:0x00007ff1f9091738 @output="Fetching gem metadata from https://rubygems.org/.........\nFetching gem metadata from https://rubygems.org/.\nResolving dependencies................\nOutdated gems included in the bundle:\n * wkhtmltopdf-heroku (newest 2.12.5.0, installed 2.12.4.0) in group \"default\"\n", @data=[{:name=>"wkhtmltopdf-heroku", :newest=>"2.12.5.0", :installed=>"2.12.4.0", :groups=>"default"}]>
>> puts parsing.to_md
![](https://github.com//workflows//badge.svg)
`bundle outdated --only-explicit --strict`
|Gem|Installed|Newest|Groups|
|---|---|---|---|
|[wkhtmltopdf-heroku](https://rubygems.org/gems/wkhtmltopdf-heroku)|2.12.4.0|2.12.5.0|default|
Can you share your workflow file? There is probably a difference with your local and the Github Action environment.
from bundler-outdated-action.
pretty much the same as in the readme:
name: 'Outdated Gems'
on: push
jobs:
outdated_gems:
runs-on: ubuntu-latest
name: Outdated gems
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.0'
- name: 'Pull outdated gem action script'
uses: actions/checkout@v2
with:
repository: 'Bhacaz/bundler-outdated-action'
- name: 'Check outdated gems'
run: 'ruby main.rb'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GEMFILE_REPOSITORY: ${{ github.repository }}
from bundler-outdated-action.
Maybe bundler
doesn't like the ruby version installed, since your Gemfile.lock specified 2.6.3
and you setup 2.7.0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
- ruby-version: '2.7.0'
+ ruby-version: '2.6.3'
from bundler-outdated-action.
I think I tried that, I gonna try that again later
from bundler-outdated-action.
does not seem to work.
i also checked the existence of the Gemfile and Gemfile.lock with
- name: 'Check outdated gems'
run: |
ruby main.rb
ls -la
seems OK.
from bundler-outdated-action.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bundler-outdated-action.