Skip to content

applejag/setup-risor

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

setup-risor

This action installs Risor inside a GitHub Action workflow.

Usage

See action.yml

Basic

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, which stores cache differently than the 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

License

This repository is licensed under the MIT license.

It is heavily inspired by the helmfile/helmfile-action and azure/setup-helm actions.

About

Github Action for installing Risor

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •