File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ if [ "$event_type" = "pipeline" ]; then
138
138
exit 1
139
139
fi
140
140
141
- if [ " $event_ref " = " main " ] || [ " $event_ref " = " master" ]; then
141
+ if [ " $event_ref " = " $arc_badges_branch_name " ] || [ " $event_ref " = " master" ]; then
142
142
echo " Pushing event to the ARC registry...."
143
143
arc_registry_push
144
144
fi
@@ -170,6 +170,7 @@ if [ "$event_type" = "pipeline" ]; then
170
170
# # END BLOCK CHECK CQC
171
171
172
172
[ " $event_ref " = " $arc_badges_branch_name " ] && purge_badges
173
+ [ " $event_ref " = " master" ] && purge_badges
173
174
174
175
# # BLOCK COMMIT ARTIFACTS TO $arc_quality_control_branch_name
175
176
commit_id=" $( jq -r ' .commit.id // empty' <<< " $json" ) "
@@ -238,7 +239,7 @@ if [ "$event_type" = "pipeline" ]; then
238
239
# # BLOCK BADGES ONLY
239
240
# check for svg suffix and only for the configured branch for badges
240
241
[ " $file " = " ${file% .svg} " ] && continue
241
- [ " $event_ref " != " $arc_badges_branch_name " ] && continue
242
+ ! ( [ " $event_ref " != " $arc_badges_branch_name " ] || [ " $event_ref " != " master " ] ) && continue
242
243
243
244
badge_name=" validation-$( echo -n ${file%%@* } | tr ' /' ' -' ) "
244
245
echo " badge name: $badge_name "
You can’t perform that action at this time.
0 commit comments