Skip to content

Commit 4790b60

Browse files
committed
little improvements in github action
1 parent f4f74fe commit 4790b60

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
echo "ADDITIONAL_BUILD_NUMBER=${BUILDNUMBER[3]}" >> $GITHUB_ENV
6969
# after a tag, all other builds use the latest build number
7070
if [ -z "${{ matrix.name }}" ]; then
71-
curl -L -X PATCH \
71+
curl -s -L -X PATCH \
7272
-H "Accept: application/vnd.github+json" \
7373
-H "Authorization: Bearer ${{ secrets.TOKEN_UPDATE_VAR }}" \
7474
-H "X-GitHub-Api-Version: 2022-11-28" \
@@ -77,18 +77,17 @@ jobs:
7777
fi
7878
else
7979
APP_VER_CODE=$(grep APP_VERSION_CODE gradle.properties | awk -F= '{print $2}')
80-
GH_APP_VER_CODE=${{ vars.LAST_APP_VERSION_CODE }}
81-
if [ "$APP_VER_CODE" != "$GH_APP_VER_CODE" ]; then
80+
if [ "$APP_VER_CODE" != "${{ vars.LAST_APP_VERSION_CODE }}" ]; then
8281
# after new release from Telegram
8382
echo "ADDITIONAL_BUILD_NUMBER=0" >> $GITHUB_ENV
8483
if [ -z "${{ matrix.name }}" ]; then
85-
curl -L -X PATCH \
84+
curl -s -L -X PATCH \
8685
-H "Accept: application/vnd.github+json" \
8786
-H "Authorization: Bearer ${{ secrets.TOKEN_UPDATE_VAR }}" \
8887
-H "X-GitHub-Api-Version: 2022-11-28" \
8988
https://api.github.com/repos/${{ github.repository }}/environments/release/variables/ADDITIONAL_BUILD \
9089
-d '{"name":"ADDITIONAL_BUILD","value":"0"}'
91-
curl -L -X PATCH \
90+
curl -s -L -X PATCH \
9291
-H "Accept: application/vnd.github+json" \
9392
-H "Authorization: Bearer ${{ secrets.TOKEN_UPDATE_VAR }}" \
9493
-H "X-GitHub-Api-Version: 2022-11-28" \

0 commit comments

Comments
 (0)