Skip to content

Commit

Permalink
Merge pull request #15 from ok-nick/home-and-no-cache-default
Browse files Browse the repository at this point in the history
Disable cache by default & use `$HOME` for env vars
  • Loading branch information
ok-nick authored Sep 20, 2023
2 parents d43c31d + fca3f1d commit 047c37f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 047c37f

Please sign in to comment.