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