jsauve / bitrise-step-remote-gist-bash-script-runner

Downloads the content of the given Github Gist and runs it as a bash script.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gist Bash Script Runner

Very similar to the Remote Bash Script Runner step, except that this one explicitly takes a main Gist URL, as opposed to a raw URL. This script scrapes the raw URL(s) of your Gist files from the content of the main URL, and then runs each of the scripts located at those URLs, in the order that the files appear on the Gist page (which is alphabetical by filename).

Note: it's uncommon for a Gist to contain multiple files, but this step will find and run all of them if there are multiple.

You must provide a valid main Gist URL (not the raw URL).

For example, a main URL may look like this:

https://gist.github.com/jsauve/dec05365cdf201637b9e1545852abe25

...whereas a raw URL for one of the Gist files may look look this:

https://gist.githubusercontent.com/jsauve/dec05365cdf201637b9e1545852abe25/raw/d7bdd21f5f1cddd5342f5804173967a4bff414fc/HelloWorld1.sh

You should be providing the NON-raw URL.

Can be run directly with the bitrise CLI, just git clone this repository, cd into it's folder in your Terminal/Command Line and call bitrise run test.

About

Downloads the content of the given Github Gist and runs it as a bash script.

License:MIT License


Languages

Language:Shell 100.0%