Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action fails "Setup ruby" when using Gemfile from README.md #27

Closed
bschonec opened this issue Feb 17, 2023 · 2 comments · Fixed by #28
Closed

Github action fails "Setup ruby" when using Gemfile from README.md #27

bschonec opened this issue Feb 17, 2023 · 2 comments · Fixed by #28

Comments

@bschonec
Copy link
Contributor

bschonec commented Feb 17, 2023

I created a completely blank puppet module, copied over Gemfile and Rakefile verbatim, created the puppet.yml Github action file and upon creating a pull request, the Github action fails at "Setup Ruby". I believe this is because the Gemfile doesn't have a pointer to get the gems installed. I added the following to the top of the Gemfile:

source ENV['GEM_SOURCE'] || 'https://rubygems.org'
re-ran the action and the "Setup Ruby" job passed.

The Gemfile at voxpupuli/puppet-chrony implies that the GEM_SOURCE needs to be set.

@ekohl
Copy link
Member

ekohl commented Feb 17, 2023

Yes, you're right. It must be set. Would you be willing to submit a PR to README.md so you get proper credit?

@bschonec
Copy link
Contributor Author

Resolved by #28

@ekohl ekohl linked a pull request Feb 21, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants