File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 62
62
DATABASE=$2
63
63
cd codeql-$QL_VARIANT
64
64
SHORTNAME=`basename $DATABASE`
65
- python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE ${SHORTNAME}.temp.model.yml
66
- mv java/ql/lib/ext/generated/${SHORTNAME}.temp.model.yml $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.model.yml
65
+ python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE $SHORTNAME/$QL_VARIANT
66
+ mkdir -p $MODELS/$SHORTNAME
67
+ mv java/ql/lib/ext/generated/$SHORTNAME/$QL_VARIANT $MODELS/$SHORTNAME
67
68
cd ..
68
69
}
69
70
@@ -86,16 +87,16 @@ jobs:
86
87
set -x
87
88
MODELS=`pwd`/tmp-models
88
89
ls -1 tmp-models/
89
- for m in $MODELS/*_main .model.yml ; do
90
+ for m in $MODELS/*/main/* .model.yml ; do
90
91
t="${m/main/"pr"}"
91
92
basename=`basename $m`
92
- name="diff_${basename/_main .model.yml/""}"
93
+ name="diff_${basename/.model.yml/""}"
93
94
(diff -w -u $m $t | diff2html -i stdin -F $MODELS/$name.html) || true
94
95
done
95
96
- uses : actions/upload-artifact@v3
96
97
with :
97
98
name : models
98
- path : tmp-models/*.model.yml
99
+ path : tmp-models/**/**/* .model.yml
99
100
retention-days : 20
100
101
- uses : actions/upload-artifact@v3
101
102
with :
You can’t perform that action at this time.
0 commit comments