use more env context in CI

This commit is contained in:
Armin Schrenk
2025-10-08 10:36:29 +02:00
parent 7f9c9a7df6
commit 6533ba7367
5 changed files with 20 additions and 15 deletions

View File

@@ -41,13 +41,15 @@ jobs:
name: Build Debian Package
runs-on: ubuntu-22.04
needs: [get-version]
env:
INPUT_PPAVER: ${inputs.ppaver}
steps:
- uses: actions/checkout@v5
- id: deb-version
name: Determine deb-version
run: |
if [ -n "${{inputs.ppaver}}" ]; then
echo "debVersion=${{inputs.ppaver }}" >> "$GITHUB_OUTPUT"
if [ -n "${INPUT_PPAVER}" ]; then
echo "debVersion=${INPUT_PPAVER}" >> "$GITHUB_OUTPUT"
else
echo "debVersion=${{needs.get-version.outputs.semVerStr}}" >> "$GITHUB_OUTPUT"
fi