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

Commit aaf6d1a

Browse files
authored
fix: set Bats PATH in case of cache-hit (#11)
1 parent cc528cf commit aaf6d1a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ runs:
112112
~/.local/bin/bats
113113
key: ${{ runner.os }}-bats-${{ inputs.bats-version }}
114114

115+
- name: "Set PATH in case of cache-hit"
116+
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit == 'true'
117+
id: bats-cache-path
118+
shell: bash
119+
run: |
120+
DESTDIR="$HOME/.local/bin"
121+
echo "$DESTDIR" >> "$GITHUB_PATH"
122+
115123
- name: "Download and install Bats"
116124
if: inputs.bats-install == 'true' && steps.bats-cache.outputs.cache-hit != 'true'
117125
id: bats-install

0 commit comments

Comments
 (0)