-
Notifications
You must be signed in to change notification settings - Fork 10
755 lines (657 loc) Β· 23.5 KB
/
self_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
name: Self-test
on:
pull_request:
push:
branches:
- main
jobs:
is-held:
name: is-held action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > changelog.yaml <<EOF
held: true
EOF
cat > CHANGELOG.md <<EOF
# Changelog
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Added new feature here
## 1.0.0 - 2017-06-20
### Added
- New visual identity by [@tylerfortune8](https://github.com/tylerfortune8).
EOF
- uses: ./is-held
id: held
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
- run: |
if [[ "${{ steps.held.outputs.is-held }}" != "true" ]]; then
echo "is-held should have returned true" >&2
exit 1
fi
is-empty:
name: is-empty action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > changelog.yaml <<EOF
notes: ""
changes: []
dependencies: []
EOF
- uses: ./is-empty
id: empty
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
- run: |
if [[ "${{ steps.empty.outputs.is-empty }}" != "true" ]]; then
echo "is-empty should have returned true" >&2
exit 1
fi
- name: Update changelog.yaml
id: repo-update
shell: bash
run: |
cd $MOCK_REPO
cat > changelog.yaml <<EOF
notes: ""
changes: []
dependencies:
- name: github.com/stretchr/testify
from: 1.8.1
to: 1.8.2
changelog: https://github.com/stretchr/testify/releases/tag/v1.8.2
meta:
pr: "212"
commit: 2394d3e450a2992224c1c56a20df1ba0e06bdf59
EOF
- uses: ./is-empty
id: empty-updated
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
- run: |
if [[ "${{ steps.empty-updated.outputs.is-empty }}" != "false" ]]; then
echo "is-empty should have returned false" >&2
exit 1
fi
generate-yaml:
name: generate-yaml action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > CHANGELOG.md <<EOF
# Changelog
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Enhancements
- Added new feature here
## 1.0.0 - 2017-06-20
### Added
- New visual identity by [@tylerfortune8](https://github.com/tylerfortune8).
EOF
- uses: ./generate-yaml
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
markdown: ${{ env.MOCK_REPO }}/CHANGELOG.md
git-root: ${{ env.MOCK_REPO }}
- run: |
cat $MOCK_REPO/changelog.yaml
if [[ $(cat $MOCK_REPO/changelog.yaml | wc -c) -eq 0 ]]; then
echo "Changelog.yaml should not be empty" >&2
exit 1
fi
if grep -e 'changes: \[\]' $MOCK_REPO/changelog.yaml; then
echo "Changelog.yaml should not have an empty changes section" >&2
exit 2
fi
generate-yaml-empty:
name: generate-yaml action empty changelog
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > CHANGELOG.md <<EOF
# Changelog
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
EOF
- uses: ./generate-yaml
id: generate-yaml
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
markdown: ${{ env.MOCK_REPO }}/CHANGELOG.md
git-root: ${{ env.MOCK_REPO }}
exit-code: 0
- run: |
if [[ "${{ steps.generate-yaml.outputs.empty-changelog }}" != "true" ]]; then
echo "empty-changelog should have returned true" >&2
exit 1
fi
next-version:
name: next-version action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
git tag v1.2.3
cat > changelog.yaml <<EOF
changes:
- type: breaking
message: this is broken
EOF
- uses: ./next-version
id: next-version
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
git-root: ${{ env.MOCK_REPO }}
- run: |
errors=0
if [[ "${{ steps.next-version.outputs.next-version }}" != "v2.0.0" ]]; then
echo "next-version should have returned v2.0.0" >&2
(( errors++ ))
fi
if [[ "${{ steps.next-version.outputs.next-major }}" != "v2" ]]; then
echo "next-version should have returned v2.0.0" >&2
(( errors++ ))
fi
if [[ "${{ steps.next-version.outputs.next-major-minor }}" != "v2.0" ]]; then
echo "next-version should have returned v2.0.0" >&2
(( errors++ ))
fi
exit ${errors}
link-dependencies:
name: link-dependencies action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > dictionary.yaml <<EOF
dictionary:
infrastructure-agent: "https://github.com/newrelic/infrastructure-agent/releases/tag/{{.To.Original}}"
EOF
cat > changelog.yaml <<EOF
changes:
- type: breaking
message: this is broken
dependencies:
- name: infrastructure-agent
to: v1.2.3
- name: github.com/spf13/viper
from: 1.14.0
to: 1.15.0
EOF
- uses: ./link-dependencies
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
dictionary: ${{ env.MOCK_REPO }}/dictionary.yaml
- run: |
cat $MOCK_REPO/changelog.yaml
if ! grep -e 'changelog: https://github.com/newrelic/infrastructure-agent/releases/tag/v1.2.3' $MOCK_REPO/changelog.yaml; then
echo "Changelog.yaml should have infrastructure-agent changelog linked" >&2
exit 2
fi
render-changelog:
name: render-changelog action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > changelog.yaml <<EOF
notes: |-
### Important announcement (note)
This is a release note
changes:
- type: breaking
message: Support has been removed
EOF
cat > expected-changelog.md <<EOF
## v1.2.3 - $(date +%Y-%m-%d)
### Important announcement (note)
This is a release note
### β οΈοΈ Breaking changes β οΈ
- Support has been removed
EOF
- uses: ./render
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
markdown: ${{ env.MOCK_REPO }}/CHANGELOG.partial.md
version: v1.2.3
- run: |
cat $MOCK_REPO/expected-changelog.md
if ! cmp --silent ${{ env.MOCK_REPO }}/expected-changelog.md ${{ env.MOCK_REPO }}/CHANGELOG.partial.md; then
echo "CHANGELOG.partial.md should be equal to the expected" >&2
exit 2
fi
update-markdown:
name: update-markdown action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > changelog.yaml <<EOF
notes: |-
### Important announcement (note)
This is a release note
changes:
- type: breaking
message: Support has been removed
EOF
cat > existing.md <<EOF
# Changelog
This is based on blah blah blah
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
cat > expected-changelog.md <<EOF
# Changelog
This is based on blah blah blah
## v1.2.3 - $(date +%Y-%m-%d)
### Important announcement (note)
This is a release note
### β οΈοΈ Breaking changes β οΈ
- Support has been removed
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
- uses: ./update-markdown
with:
yaml: ${{ env.MOCK_REPO }}/changelog.yaml
markdown: ${{ env.MOCK_REPO }}/existing.md
version: v1.2.3
- run: |
cat $MOCK_REPO/existing.md
if ! cmp ${{ env.MOCK_REPO }}/expected-changelog.md ${{ env.MOCK_REPO }}/existing.md; then
echo "Changelog md was not updated to its expected contents" >&2
exit 2
fi
validate-markdown:
name: validate markdown action
runs-on: ubuntu-latest
env:
MOCK_REPO: ./mock_repo
steps:
- uses: actions/checkout@v4
- name: Configure test repo
id: repo
shell: bash
run: |
mkdir $MOCK_REPO
cd $MOCK_REPO
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
cat > changelog.md <<EOF
# Wrong-Changelog
This is based on blah blah blah
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
- uses: ./validate-markdown
id: validate-markdown
with:
markdown: ${{ env.MOCK_REPO }}/changelog.md
exit-code: 0
- run: |
if [[ "${{ steps.validate-markdown.outputs.valid }}" != "false" ]]; then
echo "valid should have returned false" >&2
exit 1
fi
contrib-ohi-release-notes:
name: validate ohi-release-notes (contrib action)
runs-on: ubuntu-latest
env:
MOCK_REPO_ACTION: ./mock_repo_action
MOCK_REPO_SCRIPT: ./mock_repo_script
ACTION_OUTPUTS: ./action_outputs
steps:
- uses: actions/checkout@v4
- name: Configure test repo
shell: bash
run: |
# MOCK_REPO_SCRIPT is not needed as it is copied from ACTION one.
mkdir -pv "${MOCK_REPO_ACTION}" "${ACTION_OUTPUTS}"
cd "${MOCK_REPO_ACTION}"
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git init
cat > CHANGELOG.md <<EOF
# Changelog
This is based on blah blah blah
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
git add CHANGELOG.md
for i in 1 2 3; do
touch file$i
git add file$i
git commit -m commit_$i
done
git tag 1.2.3
touch dependencies
git add dependencies
git commit -m "chore(deps): bump newrelic/infrastructure from 0.0.0 to 0.0.1 (#1)" --author="dependabot[bot] <[email protected]>"
touch dependencies1
git add dependencies1
git commit -m "chore(deps): bump github.com/stretchr/testify from 1.7.0 to 1.8.0" --author="dependabot[bot] <[email protected]>"
touch dependencies-skip1
git add dependencies-skip1
git commit -m "chore(deps): bump newrelic/infrastructure from 0.0.1 to 0.0.2 (#2)" --author="dependabot[bot] <[email protected]>"
mkdir dependencies-repo-skip
touch dependencies-repo-skip/dependencies-skip2
git add dependencies-repo-skip/dependencies-skip2
git commit -m "chore(deps): bump newrelic/infrastructure from 0.0.2 to 0.0.3 (#3)" --author="dependabot[bot] <[email protected]>"
mkdir dependencies-repo
touch dependencies-repo/dependencies
git add dependencies-repo/dependencies
git commit -m "chore(deps): bump newrelic/nri-docker from 0.0.3 to 1.8.26 (#4)" --author="dependabot[bot] <[email protected]>"
cat > CHANGELOG.md <<EOF
# Changelog
This is based on blah blah blah
## Unreleased
### Enhancement
- test
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
cd $OLDPWD
cp -r "${MOCK_REPO_ACTION}" "${MOCK_REPO_SCRIPT}"
- name: Expected CHANGELOG
shell: bash
run: |
cat > expected-changelog.md <<EOF
# Changelog
This is based on blah blah blah
## Unreleased
## v2.0.0 - $(date +%Y-%m-%d)
### π Enhancements
- test
### βοΈ Dependencies
- Upgraded newrelic/infrastructure from 0.0.0 to 0.0.1 - [Changelog π](https://github.com/newrelic/infrastructure-agent/releases/tag/0.0.1)
- Upgraded newrelic/nri-docker from 0.0.3 to 1.8.26 - [Changelog π](https://github.com/newrelic/nri-docker/releases/tag/v1.8.26)
## v1.2.3 - 20YY-DD-MM
### Enhancements
- This is in the past and should be preserved
EOF
- name: Expected partial CHANGELOG
shell: bash
run: |
cat > expected-partial.md <<EOF
## v2.0.0 - $(date +%Y-%m-%d)
### π Enhancements
- test
### βοΈ Dependencies
- Upgraded newrelic/infrastructure from 0.0.0 to 0.0.1 - [Changelog π](https://github.com/newrelic/infrastructure-agent/releases/tag/0.0.1)
- Upgraded newrelic/nri-docker from 0.0.3 to 1.8.26 - [Changelog π](https://github.com/newrelic/nri-docker/releases/tag/v1.8.26)
EOF
- name: Run action
uses: ./contrib/ohi-release-notes
id: ohi-release-notes
with:
git-root: ${{ env.MOCK_REPO_ACTION }}
excluded-files: dependencies-skip1
excluded-dirs: dependencies-repo-skip
included-dirs: dependencies-repo
included-files: dependencies,dependencies1
- name: Run script
run: |
cd "${{ env.MOCK_REPO_SCRIPT }}"
# CLI autodetects whether it is running on GHA or not. If we let GHA set this to true, as it normally does,
# tests cases where GITHUB_ACTIONS is expected to be unset would fail.
GITHUB_ACTIONS=false "${GITHUB_WORKSPACE}/contrib/ohi-release-notes/run.sh" --included-dirs dependencies-repo --included-files dependencies,dependencies1 --excluded-files dependencies-skip1 --excluded-dirs dependencies-repo-skip
- name: Action outputs
working-directory: ${{ env.ACTION_OUTPUTS }}
run: |
echo -ne "${{ steps.ohi-release-notes.outputs.changelog }}" > CHANGELOG.md
echo -ne "${{ steps.ohi-release-notes.outputs.changelog-partial }}" > CHANGELOG.partial.md
- name: Asserts
run: |
exit_status=0
echo "Action's CHANGELOG.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_ACTION }}/CHANGELOG.md"
echo EXPECTED:
cat expected-changelog.md
echo TEST:
if cmp --silent expected-changelog.md ${{ env.MOCK_REPO_ACTION }}/CHANGELOG.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-changelog.md ${{ env.MOCK_REPO_ACTION }}/CHANGELOG.md
((exit_status++))
fi
echo =================================================================
echo "script's CHANGELOG.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.md"
echo EXPECTED:
cat expected-changelog.md
echo TEST:
if cmp --silent expected-changelog.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-changelog.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.md
((exit_status++))
fi
echo =================================================================
echo "script's CHANGELOG.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.md"
echo EXPECTED:
cat expected-changelog.md
echo TEST:
if cmp --silent expected-changelog.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-changelog.md ${{ env.ACTION_OUTPUTS }}/CHANGELOG.md
((exit_status++))
fi
echo =================================================================
echo "Action's CHANGELOG.partial.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_ACTION }}/CHANGELOG.partial.md"
echo EXPECTED:
cat expected-partial.md
echo TEST:
if cmp --silent expected-partial.md ${{ env.MOCK_REPO_ACTION }}/CHANGELOG.partial.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-partial.md ${{ env.MOCK_REPO_ACTION }}/CHANGELOG.partial.md
((exit_status++))
fi
echo =================================================================
echo "script's CHANGELOG.partial.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.partial.md"
echo EXPECTED:
cat expected-partial.md
echo TEST:
if cmp --silent expected-partial.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.partial.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-partial.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.partial.md
((exit_status++))
fi
echo =================================================================
echo "script's CHANGELOG.partial.md should be equal"
echo RESULT:
cat "${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.partial.md"
echo EXPECTED:
cat expected-partial.md
echo TEST:
if cmp --silent expected-partial.md ${{ env.MOCK_REPO_SCRIPT }}/CHANGELOG.partial.md; then
echo PASS
else
echo FAIL - diff between expected and the output:
diff expected-partial.md ${{ env.ACTION_OUTPUTS }}/CHANGELOG.partial.md
((exit_status++))
fi
echo =================================================================
echo "action output 'next-version' return the expected value"
echo EXPECTED:
echo "v2.0.0"
echo RESULT:
echo "${{ steps.ohi-release-notes.outputs.next-version }}"
echo TEST:
if [ "${{ steps.ohi-release-notes.outputs.next-version }}" = "v2.0.0" ] ; then
echo PASS
else
echo FAIL - action output 'next-version' does not return the expected value
((exit_status++))
fi
echo =================================================================
echo "action output 'release-title' return the expected value"
echo EXPECTED:
echo "v2.0.0 - $(date +%Y-%m-%d)"
echo RESULT:
echo "${{ steps.ohi-release-notes.outputs.release-title }}"
echo TEST:
if [ "${{ steps.ohi-release-notes.outputs.release-title }}" = "v2.0.0 - $(date +%Y-%m-%d)" ] ; then
echo PASS
else
echo FAIL - action output 'release-title' does not return the expected value
((exit_status++))
fi
exit $exit_status