better name
This commit is contained in:
parent
420b7f1d96
commit
f33759d038
@ -1,31 +1,31 @@
|
|||||||
name: GetFilename From Channel
|
name: Get string From Channel
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
channel:
|
channel:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
internalFilename:
|
internalString:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
testFilename:
|
testString:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
betaFilename:
|
betaString:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
stableFilename:
|
stableString:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
outputs:
|
outputs:
|
||||||
filename:
|
channelString:
|
||||||
description: "Filename"
|
description: "String"
|
||||||
value: ${{ jobs.parse.outputs.filename }}
|
value: ${{ jobs.parse.outputs.channelString }}
|
||||||
jobs:
|
jobs:
|
||||||
parse:
|
parse:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
filename: ${{ steps.parseStep.outputs.filename }}
|
channelString: ${{ steps.parseStep.outputs.channelString }}
|
||||||
steps:
|
steps:
|
||||||
- id: parseStep
|
- id: parseStep
|
||||||
run: |
|
run: |
|
||||||
@ -33,19 +33,19 @@ jobs:
|
|||||||
channelInput="${{ inputs.channel }}"
|
channelInput="${{ inputs.channel }}"
|
||||||
|
|
||||||
if [ "$channelInput" = "internal" ]; then
|
if [ "$channelInput" = "internal" ]; then
|
||||||
filename="${{ inputs.internalFilename }}"
|
channelString="${{ inputs.internalString }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$channelInput" = "test" ]; then
|
if [ "$channelInput" = "test" ]; then
|
||||||
filename="${{ inputs.testFilename }}"
|
channelString="${{ inputs.testString }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$channelInput" = "beta" ]; then
|
if [ "$channelInput" = "beta" ]; then
|
||||||
filename="${{ inputs.betaFilename }}"
|
channelString="${{ inputs.betaString }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$channelInput" = "stable" ]; then
|
if [ "$channelInput" = "stable" ]; then
|
||||||
filename="${{ inputs.stableFilename }}"
|
channelString="${{ inputs.stableString }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "filename=$filename" >> $GITHUB_OUTPUT
|
echo "channelString=$channelString" >> $GITHUB_OUTPUT
|
Loading…
x
Reference in New Issue
Block a user