File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,20 @@ jobs:
38
38
path : codeql-main
39
39
ref : main
40
40
- uses : ./codeql-main/.github/actions/fetch-codeql
41
+ # compute the shortname of the project that does not contain any special (disk) characters
42
+ - run : |
43
+ echo "SHORTNAME=${SLUG//[^a-zA-Z0-9_]/}" >> $GITHUB_OUTPUT
44
+ env:
45
+ SLUG: ${{ matrix.slug }}
46
+ id: shortname
41
47
- name : Download database
42
48
env :
43
49
SLUG : ${{ matrix.slug }}
44
50
GH_TOKEN : ${{ github.token }}
51
+ SHORTNAME : ${{ steps.shortname.outputs.SHORTNAME }}
45
52
run : |
46
53
set -x
47
54
mkdir lib-dbs
48
- SHORTNAME=${SLUG//[^a-zA-Z0-9_]/}
49
55
gh api -H "Accept: application/zip" "/repos/${SLUG}/code-scanning/codeql/databases/java" > "$SHORTNAME.zip"
50
56
unzip -q -d "${SHORTNAME}-db" "${SHORTNAME}.zip"
51
57
mkdir "lib-dbs/$SHORTNAME/"
@@ -95,12 +101,12 @@ jobs:
95
101
done
96
102
- uses : actions/upload-artifact@v4
97
103
with :
98
- name : models
104
+ name : models-${{ steps.shortname.outputs.SHORTNAME }}
99
105
path : tmp-models/**/**/*.model.yml
100
106
retention-days : 20
101
107
- uses : actions/upload-artifact@v4
102
108
with :
103
- name : diffs
109
+ name : diffs-${{ steps.shortname.outputs.SHORTNAME }}
104
110
path : tmp-models/*.html
105
111
# An html file is only produced if the generated models differ.
106
112
if-no-files-found : ignore
You can’t perform that action at this time.
0 commit comments