Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/applejag/setup-risor
Github Action for installing Risor
https://github.com/applejag/setup-risor
action actions github-action github-actions risor
Last synced: 13 days ago
JSON representation
Github Action for installing Risor
- Host: GitHub
- URL: https://github.com/applejag/setup-risor
- Owner: applejag
- License: mit
- Created: 2023-12-18T21:24:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-17T15:54:55.000Z (30 days ago)
- Last Synced: 2024-10-19T23:05:28.634Z (27 days ago)
- Topics: action, actions, github-action, github-actions, risor
- Language: JavaScript
- Homepage:
- Size: 669 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-risor
This action installs [Risor](https://risor.io/) inside a GitHub Action workflow.
## Usage
See [action.yml](./action.yml)
### Basic
```yaml
steps:
- uses: applejag/setup-risor@v0- shell: risor {0}
run: |
array := ["gophers", "are", "burrowing", "rodents"]sentence := array | strings.join(" ") | strings.to_upper
print(sentence)
```## Caching
This action caches the Risor binary by default.
It uses [@actions/tool-cache](https://github.com/actions/toolkit/tree/main/packages/tool-cache),
which stores cache differently than the [actions/cache](https://github.com/actions/cache)
action.Tool-cache is stored on a per-host basis, instead of on a per-repo basis.
This means that you might get a lot of cache-misses, but that's because your
jobs are being run on different action runner hosts.
It also means that the cache won't be visible in the "Caches" view inside
your repository's "Actions" tab.It also means that if you're using self-hosted runners, then you need to make
sure you [configure them to make use of hosted tool cache](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access#about-the-included-setup-actions-and-the-runner-tool-cache)## License
This repository is licensed under the MIT license.
It is heavily inspired by the [helmfile/helmfile-action](https://github.com/helmfile/helmfile-action)
and [azure/setup-helm](https://github.com/Azure/setup-helm) actions.