Giter Site home page Giter Site logo

Comments (5)

Bhacaz avatar Bhacaz commented on August 27, 2024

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.

fluxsaas avatar fluxsaas commented on August 27, 2024

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.

Bhacaz avatar Bhacaz commented on August 27, 2024

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.

fluxsaas avatar fluxsaas commented on August 27, 2024

I think I tried that, I gonna try that again later

from bundler-outdated-action.

fluxsaas avatar fluxsaas commented on August 27, 2024

does not seem to work.

Bildschirmfoto 2020-09-01 um 20 48 56

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.