fix zizmor findings

This commit is contained in:
fkwp
2026-03-11 14:20:33 +01:00
parent 8bf7ed19cc
commit 62cd885e75
2 changed files with 13 additions and 2 deletions
@@ -23,7 +23,16 @@ jobs:
steps:
- name: Calculate VERSION
# We should only use the hard coded test value for a dry run
run: echo "VERSION=${{ github.event_name == 'release' && github.event.release.tag_name || 'v0.0.0-pre.0' }}" >> "$GITHUB_ENV"
run: |
# Die Logik wird nun innerhalb der Shell mit den Variablen ausgeführt
if [ "$EVENT_NAME" = "release" ]; then
echo "VERSION=$RELEASE_TAG" >> "$GITHUB_ENV"
else
echo "VERSION=v0.0.0-pre.0" >> "$GITHUB_ENV"
fi
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
EVENT_NAME: ${{ github.event_name }}
- id: dry_run
name: Set DRY_RUN
# We perform a dry run for all events except releases.