Skip to content

Commit af6bfc9

Browse files
committed
rework-main-job-deploy-experimental-refactor
1 parent fafac82 commit af6bfc9

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/actions/setup-environment/action.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@
33
name: 'Setup Environment'
44
description: 'Sets up Ruby, installs Control Plane CLI, cpflow gem, and sets up the default profile'
55

6-
inputs:
7-
cpln_token:
8-
description: 'Control Plane token'
9-
required: true
10-
cpln_org:
11-
description: 'Control Plane organization'
12-
required: true
13-
146
runs:
157
using: 'composite'
168
steps:
@@ -30,8 +22,8 @@ runs:
3022
- name: Setup Control Plane Profile
3123
shell: bash
3224
env:
33-
CPLN_TOKEN: ${{ inputs.cpln_token }}
34-
CPLN_ORG: ${{ inputs.cpln_org }}
25+
CPLN_TOKEN: ${{ env.CPLN_TOKEN }}
26+
CPLN_ORG: ${{ env.CPLN_ORG }}
3527
run: |
3628
if [ -z "$CPLN_TOKEN" ]; then
3729
echo " Error: CPLN_TOKEN environment variable is not set"

.github/workflows/deploy-to-control-plane.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
5050
- name: Setup Environment
5151
uses: ./.github/actions/setup-environment
52-
with:
53-
cpln_token: ${{ secrets.CPLN_TOKEN_STAGING }}
54-
cpln_org: ${{ env.CPLN_ORG }}
52+
env:
53+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
54+
CPLN_ORG: ${{ vars.CPLN_ORG_STAGING }}
5555

5656
- name: Deploy to Control Plane
5757
id: deploy
@@ -97,9 +97,9 @@ jobs:
9797
9898
- name: Setup Environment
9999
uses: ./.github/actions/setup-environment
100-
with:
101-
cpln_token: ${{ secrets.CPLN_TOKEN_STAGING }}
102-
cpln_org: ${{ env.CPLN_ORG }}
100+
env:
101+
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
102+
CPLN_ORG: ${{ vars.CPLN_ORG_STAGING }}
103103

104104
- name: Get PR Number for Push Event
105105
if: github.event_name == 'push'

0 commit comments

Comments
 (0)