mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 04:30:37 +00:00
Merge pull request #15 from ok-nick/home-and-no-cache-default
Disable cache by default & use `$HOME` for env vars
This commit is contained in:
commit
047c37f2ae
3 changed files with 10 additions and 4 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -15,6 +15,8 @@ defaults:
|
|||
jobs:
|
||||
test-cache:
|
||||
uses: ./.github/workflows/env.yml
|
||||
with:
|
||||
cache: "true"
|
||||
test-no-cache:
|
||||
uses: ./.github/workflows/env.yml
|
||||
with:
|
||||
|
|
|
@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
## Changed
|
||||
- Disable caching by default #15
|
||||
|
||||
## Fixed
|
||||
- Issue causing executables to not be found #14
|
||||
|
||||
## [0.4.1] - 2023-09-18
|
||||
## Fixed
|
||||
|
|
|
@ -12,7 +12,7 @@ inputs:
|
|||
required: false
|
||||
cache:
|
||||
description: "Whether to enable caching"
|
||||
default: "true"
|
||||
default: "false"
|
||||
required: false
|
||||
token:
|
||||
description: "GitHub token via `github.token`"
|
||||
|
@ -58,12 +58,12 @@ runs:
|
|||
|
||||
- name: Set environment variable
|
||||
if: runner.os != 'Windows'
|
||||
run: echo "~/.aftman/bin" >> $GITHUB_PATH
|
||||
run: echo "$HOME/.aftman/bin" >> $GITHUB_PATH
|
||||
shell: bash
|
||||
|
||||
- name: Create auth file
|
||||
run: |
|
||||
cat > ~/.aftman/auth.toml << EOF
|
||||
cat > $HOME/.aftman/auth.toml << EOF
|
||||
github = "${{ inputs.token }}"
|
||||
EOF
|
||||
shell: bash
|
||||
|
@ -75,7 +75,6 @@ runs:
|
|||
path: |
|
||||
~/.aftman/bin
|
||||
~/.aftman/tool-storage
|
||||
# TODO: also hash ~/.aftman/aftman.toml
|
||||
key: ${{ runner.os }}-aftman-${{hashFiles(format('{0}/{1}', inputs.path, 'aftman.toml'))}}
|
||||
|
||||
- name: Install tools
|
||||
|
|
Loading…
Reference in a new issue