Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Set pull-secret parameter not mandatory #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ description: 'Run OpenShift/Microshift cluster using GH action'
inputs:
pull-secret:
description: 'pull-secret in case running OCP/Microshift.'
required: true
default: '{"auths":{"fake":{"auth": "Zm9vOmJhcgo="}}}'
default: ''
preset:
description: 'preset to use for CRC microshift/okd/openshift (default microshift).'
required: true
Expand All @@ -27,6 +26,14 @@ runs:
run: |
echo "::error title=⛔ error hint::Support Linux Only"
exit 1
- name: Check pull-secret
if: |
(inputs.preset == 'microshift' || inputs.preset == 'openshift') &&
inputs.pull-secret == ''
shell: bash
run: |
echo "::error title=⛔ error hint::For preset ${{ inputs.preset }} pull-secret is required"
exit 1
- name: Download CRC
shell: bash
run: |
Expand Down
Loading