From 11d4511bc83c585f39f9fb4a9661b3a1ed9c6433 Mon Sep 17 00:00:00 2001 From: ziro Date: Sun, 14 Jan 2024 11:32:36 +0700 Subject: [PATCH] ci: Fix release conflict with nightly --- .github/workflows/build_push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index eeab58eef4..43efb875af 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -56,7 +56,7 @@ jobs: # NIGHTLY - name: Prepare nightly build - if: steps.branch_name.outputs.name == 'master' + if: steps.branch_name.outputs.name == 'master' && github.event.inputs.version == '' run: | set -x echo "VERSION_TAG=r$(git rev-list --count HEAD)" >> $GITHUB_ENV @@ -180,4 +180,4 @@ jobs: if: startsWith(env.VERSION_TAG, 'r') && env.PREV_TAG != '' run: gh release delete ${{ env.PREV_TAG }} --cleanup-tag env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}