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 6262 DATABASE=$2
6363 cd codeql-$QL_VARIANT
6464 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
6768 cd ..
6869 }
6970
@@ -86,16 +87,16 @@ jobs:
8687 set -x
8788 MODELS=`pwd`/tmp-models
8889 ls -1 tmp-models/
89- for m in $MODELS/*_main .model.yml ; do
90+ for m in $MODELS/*/main/* .model.yml ; do
9091 t="${m/main/"pr"}"
9192 basename=`basename $m`
92- name="diff_${basename/_main .model.yml/""}"
93+ name="diff_${basename/.model.yml/""}"
9394 (diff -w -u $m $t | diff2html -i stdin -F $MODELS/$name.html) || true
9495 done
9596 - uses : actions/upload-artifact@v3
9697 with :
9798 name : models
98- path : tmp-models/*.model.yml
99+ path : tmp-models/**/**/* .model.yml
99100 retention-days : 20
100101 - uses : actions/upload-artifact@v3
101102 with :
You can’t perform that action at this time.
0 commit comments