0
0
This commit is contained in:
Marco Maatz 2025-05-16 15:34:30 +02:00
parent 9554fa971b
commit 788006ea09

View File

@ -0,0 +1,51 @@
name: Parse Version Number
on:
workflow_call:
inputs:
channel:
required: false
type: string
internalFilename:
required: false
type: string
testFilename:
required: false
type: string
betaFilename:
required: false
type: string
stableFilename:
required: false
type: string
outputs:
filename:
description: "Filename"
value: ${{ jobs.parse.outputs.filename }}
jobs:
parse:
runs-on: ubuntu-latest
outputs:
filename: ${{ steps.parseStep.outputs.filename }}
steps:
- id: parseStep
run: |
channelInput="${{ inputs.channel }}"
if [ "$channelInput" = "internal" ]; then
filename="${{ inputs.internalFilename }}"
fi
if [ "$channelInput" = "test" ]; then
filename="${{ inputs.testFilename }}"
fi
if [ "$channelInput" = "beta" ]; then
filename="${{ inputs.betaFilename }}"
fi
if [ "$channelInput" = "stable" ]; then
filename="${{ inputs.stableFilename }}"
fi
echo "filename=$filename" >> $GITHUB_OUTPUT