Skip to content

Commit 9825526

Browse files
committed
Исправлено определение ветки
1 parent f2adb1c commit 9825526

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/linux-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ jobs:
120120
with:
121121
name: Linux
122122
path: ${{ github.workspace }}/Linux
123+
- name: Get branch name
124+
uses: EthanSK/git-branch-name-action@v1
123125
- name: Create Release
124126
id: create_release
125127
uses: ncipollo/release-action@v1.10.0
@@ -129,4 +131,4 @@ jobs:
129131
artifacts: "${{ github.workspace }}/Linux/Linux-Setup"
130132
name: ${{ github.event.head_commit.message }}
131133
draft: false
132-
prerelease: ${{ github.ref != 'refs/heads/master' }}
134+
prerelease: ${{ env.GIT_BRANCH_NAME != 'master' }}

.github/workflows/windows-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ jobs:
105105
with:
106106
name: Windows
107107
path: ${{ github.workspace }}/Windows
108+
- name: Get branch name
109+
uses: EthanSK/git-branch-name-action@v1
108110
- name: Create Release
109111
id: create_release
110112
uses: ncipollo/release-action@v1.10.0
@@ -114,4 +116,4 @@ jobs:
114116
artifacts: "${{ github.workspace }}/Windows/Windows-Setup.exe"
115117
name: ${{ github.event.head_commit.message }}
116118
draft: false
117-
prerelease: ${{ github.ref != 'refs/heads/master' }}
119+
prerelease: ${{ env.GIT_BRANCH_NAME == 'master' }}

0 commit comments

Comments
 (0)