new wf
This commit is contained in:
parent
9554fa971b
commit
788006ea09
51
.gitea/workflows/getFilenameFromChannel.yaml
Normal file
51
.gitea/workflows/getFilenameFromChannel.yaml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user