File tree 1 file changed +16
-15
lines changed
1 file changed +16
-15
lines changed Original file line number Diff line number Diff line change 29
29
- name : Checkout Code
30
30
uses : actions/checkout@v4
31
31
32
- - name : Check Changelog
33
- id : changelog_check
34
- run : |
35
- FILE=./Documentation/CHANGELOG_${{ secrets.REF_NAME }}.md
36
- echo "$FILE"
37
- if [ -f "$FILE" ]
38
- then
39
- echo "changelog_exists=true" >> $GITHUB_OUTPUT
40
- echo "changelog_file=$FILE" >> $GITHUB_OUTPUT
41
- exit 0
42
- else
43
- echo "There is no changelog found for tag $FILE. Please add a CHANGELOG_$FILE.md file with the changes for this version in the Documentation folder."
44
- exit 1
45
- fi
46
-
47
32
- name : Check Release
48
33
id : release_check
49
34
run : |
65
50
exit 1
66
51
fi
67
52
53
+ - name : Check Changelog
54
+ id : changelog_check
55
+ if : steps.release_check.outputs.prerelease == 'false'
56
+ run : |
57
+ FILE=./Documentation/CHANGELOG_${{ secrets.REF_NAME }}.md
58
+ echo "$FILE"
59
+ if [ -f "$FILE" ]
60
+ then
61
+ echo "changelog_exists=true" >> $GITHUB_OUTPUT
62
+ echo "changelog_file=$FILE" >> $GITHUB_OUTPUT
63
+ exit 0
64
+ else
65
+ echo "There is no changelog found for tag $FILE. Please add a CHANGELOG_$FILE.md file with the changes for this version in the Documentation folder."
66
+ exit 1
67
+ fi
68
+
68
69
- name : Logging
69
70
run : |
70
71
echo ${{ steps.changelog_check.outputs.changelog_exists }}
You can’t perform that action at this time.
0 commit comments