Skip to content

Commit 8d133b9

Browse files
authored
fix: improve local cache hack (#25)
1 parent 3882a30 commit 8d133b9

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,16 @@ inputs:
7272
runs:
7373
using: "composite"
7474
steps:
75-
- run: echo "$(ls -d ./../../_actions/LocalStack/setup-localstack/* | grep -v completed)"
76-
shell: bash
77-
78-
- run: echo "GH_ACTION_ROOT=$(ls -d ./../../_actions/LocalStack/setup-localstack/* | grep -v completed)" >> $GITHUB_ENV
75+
- run: >
76+
echo "GH_ACTION_ROOT=$(
77+
ls -d $(
78+
ls -d ./../../_actions/* |
79+
grep -i localstack |
80+
tail -n1
81+
)/setup-localstack/* |
82+
grep -v completed |
83+
tail -n1
84+
)" >> $GITHUB_ENV
7985
shell: bash
8086
8187
- name: Install tools

ephemeral/startup/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ inputs:
1919
runs:
2020
using: composite
2121
steps:
22-
- run: echo "GH_ACTION_ROOT=$(ls -d ./../../_actions/LocalStack/setup-localstack/* | grep -v completed)" >> $GITHUB_ENV
22+
- run: >
23+
echo "GH_ACTION_ROOT=$(
24+
ls -d $(
25+
ls -d ./../../_actions/* |
26+
grep -i localstack |
27+
tail -n1
28+
)/setup-localstack/* |
29+
grep -v completed |
30+
tail -n1
31+
)" >> $GITHUB_ENV
2332
shell: bash
2433
2534
- name: Initial PR comment

startup/action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ runs:
3737
# with:
3838
# github-token: ${{ inputs.github-token }}
3939
# ci-project: ${{ inputs.ci-project }}
40-
- run: echo "GH_ACTION_ROOT=$(ls -d ./../../_actions/LocalStack/setup-localstack/* | grep -v completed)" >> $GITHUB_ENV
40+
- run: >
41+
echo "GH_ACTION_ROOT=$(
42+
ls -d $(
43+
ls -d ./../../_actions/* |
44+
grep -i localstack |
45+
tail -n1
46+
)/setup-localstack/* |
47+
grep -v completed |
48+
tail -n1
49+
)" >> $GITHUB_ENV
4150
shell: bash
4251
4352
- name: Install tools

0 commit comments

Comments
 (0)