Skip to content

Commit 18fa2e6

Browse files
committed
avoid spurious workflows
1 parent 6f0c989 commit 18fa2e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ def workflow(self, workflows, num, fragment, stepList, key, hasHarvest):
166166
def workflow_(self, workflows, num, fragment, stepList, key):
167167
fragmentTmp = [fragment, key]
168168
if len(self.suffix)>0: fragmentTmp.append(self.suffix)
169-
workflows[num+self.offset] = [ fragmentTmp, stepList ]
169+
# avoid spurious workflows (no steps modified)
170+
if self.offset==0 or workflows[num][1]!=stepList:
171+
workflows[num+self.offset] = [ fragmentTmp, stepList ]
170172
def condition(self, fragment, stepList, key, hasHarvest):
171173
return False
172174
def preventReuse(self, stepName, stepDict, k):

0 commit comments

Comments
 (0)