Ruby-Scripts | ruby scripts for those who live in the command line
kandi X-RAY | Ruby-Scripts Summary
kandi X-RAY | Ruby-Scripts Summary
A collection of ruby scripts for those who live in the command line
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Ruby-Scripts
Ruby-Scripts Key Features
Ruby-Scripts Examples and Code Snippets
Community Discussions
Trending Discussions on Ruby-Scripts
QUESTION
I have a Ruby script that I want to run when a pull-request is created. This pull-request validates a series of conditions to be sure the pull-request can be merged. It's a very simple script with no external gems, just standard Ruby.
I'm trying to run this script on a job on a run step. The problem is, I'm not sure the path where the file should be saved.
The script is called: validator.rb
. From my local computer I can run the script using:
ANSWER
Answered 2020-Mar-29 at 08:54As I've mentioned in the comments, the reason why your workflow isn't working is that you forgot the crucial step that checks-out your repository. By default, the workspace is empty unless you check out the repository with the Checkout GitHub Action.
From the GitHub Action's README:
This action checks-out your repository under
$GITHUB_WORKSPACE
, so your workflow can access it.
Here's an example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Ruby-Scripts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page