Skip to content

Commit 0193ae5

Browse files
committed
fixed ref name
1 parent 0ea042b commit 0193ae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Check Release
3535
id: release_check
3636
run: |
37-
REF_NAME="${{ github.ref_type }}"
37+
REF_NAME="${{ github.ref_name }}"
3838
RELEASE_REGEX="^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$"
3939
PRE_RELEASE_REGEX="^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+-[0-9a-zA-Z]+$"
4040
if [[ $REF_NAME =~ $RELEASE_REGEX ]]
@@ -56,7 +56,7 @@ jobs:
5656
id: changelog_check
5757
if: steps.release_check.outputs.prerelease == 'false'
5858
run: |
59-
FILE=./Documentation/CHANGELOG_${{ github.ref_type }}.md
59+
FILE=./Documentation/CHANGELOG_${{ github.ref_name }}.md
6060
echo "$FILE"
6161
if [ -f "$FILE" ]
6262
then
@@ -92,7 +92,7 @@ jobs:
9292
env:
9393
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
9494
with:
95-
name: ${{ github.ref_type }}
95+
name: ${{ github.ref_name }}
9696
bodyFile: ${{ steps.changelog_check.outputs.changelog_file }}
9797
draft: false
9898
prerelease: ${{ steps.release_check.outputs.prerelease == 'true' }}

0 commit comments

Comments
 (0)