Skip to content

PythonCoderAS/github-run-script

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
February 11, 2023 23:56
June 12, 2022 12:42
June 12, 2022 12:42
June 28, 2022 18:45
June 12, 2022 12:42
June 12, 2022 12:42
June 12, 2022 12:42
June 12, 2022 12:42
August 29, 2023 13:18
June 28, 2022 17:16

github-run-script

Run a script on multiple repositories, cloning them if needed.

NOTE: The script has to be an absolute path, otherwise it will fail.

  Description
    Run a script on multiple repositories, cloning them if needed.

  Usage
    $ github-run-script <script> [options]

  Options
    -o, --owner          The owner for repositories without an explicit owner.
    -s, --search-path    A path to search for already-cloned repositories.
    -t, --terminate      Terminate any spawned processes on error.
    -s, --signal         The signal to terminate a process with.
    -v, --version        Displays current version
    -h, --help           Displays this message

Environment variables

The script gets run with additional environment variables.

Environment Variable Name Description
REPO_OWNER The owner of the repository
REPO_NAME The name of the repository
REPO The value of "REPO_OWNER/REPO_NAME"
REPO_PATH The path to the repository on the filesystem. The same path as the working directory of the script.