95
95
fi
96
96
97
97
- name : Check for gold standard
98
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
99
98
run : |
100
99
# only analyze vulnerabilities if a gold standard is present
101
100
if [ -d "benchmark/${{ matrix.directory }}/model_gs" ]; then
@@ -105,7 +104,7 @@ jobs:
105
104
fi
106
105
107
106
- name : Checkout repositories
108
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
107
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
109
108
run : |
110
109
# Assuming repositories is a comma-separated list
111
110
IFS=',' read -r -a repositories_array <<< "${{ env.repositories }}"
@@ -116,7 +115,7 @@ jobs:
116
115
done
117
116
118
117
- name : Run Retriever
119
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
118
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
120
119
uses : PalladioSimulator/Palladio-ReverseEngineering-Retriever@main
121
120
with :
122
121
source_path : repo/${{ matrix.directory }}
@@ -128,14 +127,14 @@ jobs:
128
127
rules_path : ${{ env.rules_path }}
129
128
130
129
- name : Download results
131
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
130
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
132
131
uses : actions/download-artifact@v3
133
132
with :
134
133
name : retriever
135
134
path : results
136
135
137
136
- name : Prepare upload
138
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
137
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
139
138
run : |
140
139
mkdir -p to_commit/${{ matrix.directory }}/model_re/pcm
141
140
mkdir -p to_commit/${{ matrix.directory }}/model_re/uml
@@ -147,7 +146,7 @@ jobs:
147
146
mv results/repo/${{ matrix.directory }}/* to_commit/${{ matrix.directory }}/model_re/pcm
148
147
149
148
- name : Render UML diagrams
150
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
149
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
151
150
run : |
152
151
sudo apt-get install graphviz
153
152
wget https://github.com/plantuml/plantuml/releases/download/v1.2023.13/plantuml-1.2023.13.jar -O plantuml.jar
@@ -158,15 +157,15 @@ jobs:
158
157
done
159
158
160
159
- name : Update version
161
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
160
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
162
161
run : |
163
162
# manually overwrite current_version to avoid bug with yq
164
163
sed -i 's/current_version:.*/current_version: "${{ needs.collect_info.outputs.latest_version }}"/' "benchmark/${{ matrix.directory }}/.retriever.yml"
165
164
# yq '.current_version = "${{ needs.collect_info.outputs.latest_version }}"' -i "benchmark/${{ matrix.directory }}/.retriever.yml"
166
165
mv "benchmark/${{ matrix.directory }}/.retriever.yml" to_commit/${{ matrix.directory }}/.retriever.yml
167
166
168
167
- name : Upload artifact
169
- if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || inputs.analyzeVulnerabilities == 'true' }}
168
+ if : ${{ needs.collect_info.outputs.latest_version != env.current_version || inputs.overrideBenchmark == 'true' || env.analyze_vulnerabilities == 'true' }}
170
169
uses : actions/upload-artifact@v3
171
170
with :
172
171
name : to_commit
0 commit comments