-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add oblt-cli/flags action #27
base: main
Are you sure you want to change the base?
Conversation
@v1v I was playing around with this a bit. But this is the only common I could find across the commands. Adding all the cases would make this unnecessarily complex. Should we still use this for the common flags? |
Maybe we need one per cli flag?
Then consumers can choose the ones they need , for instance , name: 'oblt-cli/cluster-create-serverless'
description: 'Run the oblt-cli wrapper to create a serverless cluster.'
inputs:
...
runs:
using: "composite"
steps:
- uses: elastic/oblt-actions/oblt-cli/flags-prefix@v1
id: prefix
with:
cluster-name-prefix: 'prefix'
- uses: elastic/oblt-actions/oblt-cli/flags-suffix@v1
id: suffix
with:
cluster-name-suffix: 'suffix'
- uses: elastic/oblt-actions/oblt-cli/flags-gitops@v1
id: gitops
with:
gitops: true
- uses: elastic/oblt-actions/oblt-cli/flags-dry-run@v1
id: dry-run
with:
dry-run: true
- uses: elastic/oblt-actions/oblt-cli/setup@v1.2.0
with:
github-token: ${{ inputs.github-token }}
slack-channel: ${{ inputs.slack-channel }}
username: ${{ inputs.username }}
- run: |
oblt-cli cluster create custom \
--template serverless \
${{ steps.dry-run.outputs.params }} \
${{ steps.gitops.outputs.params }} \
${{ steps.suffix.outputs.params }} \
${{ steps.prefix.outputs.params }}
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github-token }} What do you think? |
IMO, all those params can be put into a single action. |
No description provided.