Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fix: set Bats PATH in case of cache-hit (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenpip3 authored Aug 16, 2023
1 parent cc528cf commit aaf6d1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ runs:
~/.local/bin/bats
key: ${{ runner.os }}-bats-${{ inputs.bats-version }}

- name: "Set PATH in case of cache-hit"
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit == 'true'
id: bats-cache-path
shell: bash
run: |
DESTDIR="$HOME/.local/bin"
echo "$DESTDIR" >> "$GITHUB_PATH"
- name: "Download and install Bats"
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit != 'true'
id: bats-install
Expand Down

0 comments on commit aaf6d1a

Please sign in to comment.