@@ -28,19 +28,19 @@ jobs:
28
28
with :
29
29
issue-number : ${{ github.event.pull_request.number }}
30
30
comment-author : " github-actions[bot]"
31
- body-includes : This was CompareMPS
31
+ body-includes : CompareMPS report
32
32
- name : Comment on PR with CompareMPS
33
33
if : github.event.pull_request.head.repo.full_name == github.repository
34
34
uses : peter-evans/create-or-update-comment@v4
35
35
with :
36
36
comment-id : ${{ steps.find-old-comment.outputs.comment-id }}
37
37
issue-number : ${{ github.event.pull_request.number }}
38
38
body : |
39
+ ## :robot: CompareMPS report
40
+
39
41
### :hourglass: Running MPS comparison
40
42
41
43
Please wait.
42
-
43
- :robot: This was CompareMPS, we hope you have enjoyed this program.
44
44
edit-mode : replace
45
45
- name : Clone
46
46
uses : actions/checkout@v4
59
59
- name : Create PR body
60
60
if : failure()
61
61
run : |
62
- echo '## :warning: MPS files differ
62
+ echo '## :robot: CompareMPS report
63
+
64
+ ### :warning: MPS files differ
63
65
64
- ### What to do?
66
+ What to do?
65
67
66
68
#### :+1: If this is expected
67
69
71
73
julia --project=. utils/scripts/model-mps-update.jl
72
74
```
73
75
74
- #### :-1: This is bad
76
+ #### :-1: If this is bad
75
77
76
78
Then, review the log below to figure out why the files differ:
77
79
84
86
</details>
85
87
86
88
For more details about this workflow, check <https://tulipaenergy.github.io/TulipaEnergyModel.jl/dev/91-developer/#Testing-the-generate-MPS-files>.
87
-
88
- :robot: This was CompareMPS, we hope you have enjoyed this program.
89
89
' >> body.md
90
90
echo "::warning title=MPS files are different::$(cat body.md)"
91
91
- name : Find Comment
95
95
with :
96
96
issue-number : ${{ github.event.pull_request.number }}
97
97
comment-author : " github-actions[bot]"
98
- body-includes : This was CompareMPS
98
+ body-includes : CompareMPS report
99
99
- name : Comment on PR with log if failed
100
100
if : failure() && github.event.pull_request.head.repo.full_name == github.repository
101
101
uses : peter-evans/create-or-update-comment@v4
@@ -111,7 +111,7 @@ jobs:
111
111
comment-id : ${{ steps.find-comment.outputs.comment-id }}
112
112
issue-number : ${{ github.event.pull_request.number }}
113
113
body : |
114
- ### :white_check_mark: MPS files match
114
+ ## :robot: CompareMPS report
115
115
116
- :robot: This was CompareMPS, we hope you have enjoyed this program.
116
+ ### :white_check_mark: MPS files match
117
117
edit-mode : replace
0 commit comments