Skip to content

Commit

Permalink
Only mention deployer, as we use that as environment
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcosmonaut committed Mar 19, 2024
1 parent 8e25c54 commit 8ac6f5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/01-deploy-control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ run-name: Deploy Control Plane by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
environment:
description: "Select the environment to deploy to"
required: true
type: environment
deployer:
description: "Select the deployer you created"
required: true
type: choice
options:
- ACC-NOEU-ORDER66-INFRASTRUCTURE
type: environment
library:
default: MGMT-NOEU-SAP_LIBRARY
description: "Select the SAP Library to deploy"
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/update-workflow-on-workspaces-changes.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/usr/bin/env bash

# Remove the current values
yq -i 'del(.on.workflow_dispatch.inputs.deployer.options)' .github/workflows/01-deploy-control-plane.yaml
yq -i 'del(.on.workflow_dispatch.inputs.library.options)' .github/workflows/01-deploy-control-plane.yaml

# Add the new values
for deployer in $(ls ${GITHUB_WORKSPACE}/WORKSPACES/DEPLOYER); do
yq -i '.on.workflow_dispatch.inputs.deployer.options += ["'${deployer}'"]' .github/workflows/01-deploy-control-plane.yaml
done

for library in $(ls ${GITHUB_WORKSPACE}/WORKSPACES/LIBRARY); do
yq -i '.on.workflow_dispatch.inputs.library.options += ["'${library}'"]' .github/workflows/01-deploy-control-plane.yaml
done
Expand Down

0 comments on commit 8ac6f5e

Please sign in to comment.