From 78739c544b36537c491724ddab90266b824a08e0 Mon Sep 17 00:00:00 2001 From: FeeeeK <26704473+FeeeeK@users.noreply.github.com> Date: Sun, 7 Jan 2024 19:31:08 +0300 Subject: [PATCH] Fix release conditions --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 670100b..573cb2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: 2 - name: Check if version changed - if: github.event.workflow_run.event != 'workflow_dispatch' + if: github.event_name != 'workflow_dispatch' id: check_version run: | if git diff HEAD^ HEAD -- LCAmmoCheck/LCAmmoCheck.csproj | grep -q ""; then @@ -40,7 +40,7 @@ jobs: fi - name: Set version from input - if: github.event.workflow_run.event == 'workflow_dispatch' + if: github.event_name == 'workflow_dispatch' run: | echo "STOP_WORKFLOW=false" >> $GITHUB_ENV echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV