31 lines
685 B
YAML
31 lines
685 B
YAML
name: Check Channel Security Input
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
channel:
|
|
required: true
|
|
type: string
|
|
channelInput:
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
UpdateRelease:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Read Tag
|
|
run: |
|
|
|
|
channel="${{ inputs.channel }}"
|
|
if [ "$channel" = "internal" ]; then
|
|
echo "Channel is internal"
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$channel" != "${{ inputs.channelInput }}" ]; then
|
|
echo "Channel and channelInput do not match"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Channel and channelInput match"
|
|
exit 0
|
|
|