counsel-projectile/.forgejo/install-emacs/action.yml
Maciej Szlosarczyk 6db71f77c3
Some checks failed
/ Test on 29.1 (push) Waiting to run
/ Test on snapshot (push) Waiting to run
/ Test on 28.2 (push) Has been cancelled
Cache nix
2024-08-15 20:26:07 +03:00

27 lines
865 B
YAML

name: 'Set up Emacs'
description: 'Install a specific Emacs version for use in your workflow.'
author: 'Steve Purcell'
inputs:
version:
description: 'The version of Emacs to install, e.g. "24.3", or "snapshot" for a recent development version.'
runs:
using: 'composite'
steps:
- name: Restore cached version
id: cache-restore
uses: https://code.forgejo.org/actions/cache/restore@v4
with:
path: |
/nix/store
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }}
- run: ${{ github.action_path }}/install.sh
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
- name: Cache version
id: cache-put
uses: https://code.forgejo.org/actions/cache/save@v4
with:
path: |
/nix/store
key: ${{ inputs.version }}-${{ hashFiles('flake.lock') }}