Skip to content

Commit 3988706

Browse files
committed
release action
1 parent 4267c0d commit 3988706

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/DataMiner+CI+Automation.yml

+16-15
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,6 @@ jobs:
2929
- name: Checkout Code
3030
uses: actions/checkout@v4
3131

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-
4732
- name: Check Release
4833
id: release_check
4934
run: |
@@ -65,6 +50,22 @@ jobs:
6550
exit 1
6651
fi
6752
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+
6869
- name: Logging
6970
run: |
7071
echo ${{ steps.changelog_check.outputs.changelog_exists }}

0 commit comments

Comments
 (0)