GitHub Action to download the Regolith CLI and add it to PATH so you can run regolith in your workflow steps.
name: Example Workflow
on: [push]
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Regolith
uses: bedrock-core/setup-regolith@v1
with:
regolith-version: '1.6.1' # or 'latest'
resolvers: |
github.com/bedrock-core/regolith-filters
- name: Run Regolith profile
run: regolith run release-
regolith-version(optional)- Version of Regolith to install from GitHub releases (e.g.
latest,1.6.1). - Default:
latest.
- Version of Regolith to install from GitHub releases (e.g.
-
resolvers(optional)- Newline- or comma-separated list of resolver URLs to append via:
regolith config resolvers --append <resolver-url>
- Example:
github.com/bedrock-core/regolith-filters.
- Newline- or comma-separated list of resolver URLs to append via:
After the setup-regolith step completes, regolith is available on PATH for all subsequent steps in the same job.
- Downloads the appropriate Regolith binary for the runner OS from the Regolith GitHub releases.
- Extracts and caches it using the GitHub Actions tool cache.
- Adds the binary directory to
PATH. - Optionally appends any provided resolver URLs to the Regolith configuration.
- Does not run any Regolith profiles itself; you stay in control and run
regolithas needed.
yarn installyarn buildyarn packageThis project uses Yarn 4 with the node-modules linker.
MIT