Skip to content

Commit 4c7821c

Browse files
committed
update
1 parent 85c80e1 commit 4c7821c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/actions/run.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs [
3636

3737
var recordsToDelete []any
3838

39+
recordsToDelete = append(recordsToDelete, &actions.ActionRun{
40+
RepoID: repoID,
41+
ID: run.ID,
42+
})
43+
recordsToDelete = append(recordsToDelete, &actions.ActionRunJob{
44+
RepoID: repoID,
45+
RunID: run.ID,
46+
})
3947
for _, tas := range tasks {
4048
recordsToDelete = append(recordsToDelete, &actions.ActionTask{
4149
RepoID: repoID,
@@ -49,14 +57,6 @@ func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs [
4957
TaskID: tas.ID,
5058
})
5159
}
52-
recordsToDelete = append(recordsToDelete, &actions.ActionRunJob{
53-
RepoID: repoID,
54-
RunID: run.ID,
55-
})
56-
recordsToDelete = append(recordsToDelete, &actions.ActionRun{
57-
RepoID: repoID,
58-
ID: run.ID,
59-
})
6060
recordsToDelete = append(recordsToDelete, &actions.ActionArtifact{
6161
RepoID: repoID,
6262
RunID: run.ID,

0 commit comments

Comments
 (0)