Skip to content

Commit ea4eb2f

Browse files
authored
Update release-ci.yml
1 parent 7e3cf93 commit ea4eb2f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release-ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
steps:
5151
- name: Checkout
5252
uses: actions/checkout@v4.2.2
53+
with:
54+
fetch-depth: 0
5355

5456
- name: Download Release APK
5557
uses: actions/download-artifact@v4
@@ -109,7 +111,7 @@ jobs:
109111
echo -e "PLATFORMS<<EOF\n${PLATFORMS}EOF" >> $GITHUB_ENV
110112
111113
- name: Upload files to Telegram
112-
if: inputs.send_telegram == 'true'
114+
if: github.event.inputs.send_telegram == 'true'
113115
uses: xz-dev/TelegramFileUploader@v1.1.1
114116
with:
115117
to-who: '@MMRLCI'
@@ -136,7 +138,7 @@ jobs:
136138
BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
137139

138140
- name: Check if release exists
139-
if: inputs.send_github == 'true'
141+
if: github.event.inputs.send_github == 'true'
140142
id: check_release
141143
run: |
142144
if gh release view v${{ env.VERSION }} --repo ${{ github.repository }} > /dev/null 2>&1; then
@@ -148,7 +150,7 @@ jobs:
148150
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149151

150152
- name: Create GitHub Release
151-
if: steps.check_release.outputs.exists == 'false' && inputs.send_github == 'true'
153+
if: steps.check_release.outputs.exists == 'false' && github.event.inputs.send_github == 'true'
152154
id: create_release
153155
uses: actions/create-release@v1
154156
with:
@@ -210,6 +212,8 @@ jobs:
210212
steps:
211213
- name: Checkout
212214
uses: actions/checkout@v4.2.2
215+
with:
216+
fetch-depth: 0
213217

214218
- name: Set up signing key
215219
run: |

0 commit comments

Comments
 (0)