Skip to content

Commit

Permalink
Fix release conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
FeeeeK committed Jan 7, 2024
1 parent 8fe2f6d commit 78739c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<Version>"; then
Expand All @@ -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
Expand Down

0 comments on commit 78739c5

Please sign in to comment.