Skip to content

Commit f6fdf45

Browse files
committed
remember to actually output the compilation dir
1 parent efc75e0 commit f6fdf45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/actions/cache-query-compilation/action.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
outputs:
1010
cache-dir:
1111
description: "The directory where the cache was stored"
12-
value: ${{ steps.fill-compilation-dir.outputs.compdir }}
12+
value: ${{ steps.output-compilation-dir.outputs.compdir }}
1313

1414
runs:
1515
using: composite
@@ -42,7 +42,15 @@ runs:
4242
restore-keys: | # restore the latest cache if the exact cache is unavailable, to speed up compilation.
4343
codeql-compile-${{ inputs.key }}-${{ github.ref_name }}-
4444
codeql-compile-${{ inputs.key }}-main-
45+
- name: Output-compilationdir
46+
id: output-compilation-dir
47+
shell: bash
48+
run: |
49+
echo "compdir=${COMBINED_CACHE_DIR}" >> $GITHUB_OUTPUT
50+
env:
51+
COMBINED_CACHE_DIR: ${{ runner.temp }}/compilation-dir
4552
- name: Fill compilation cache directory
53+
id: fill-compilation-dir
4654
uses: actions/github-script@v6
4755
env:
4856
COMBINED_CACHE_DIR: ${{ runner.temp }}/compilation-dir

0 commit comments

Comments
 (0)