Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
use env
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Nov 7, 2023
1 parent 9214f99 commit 067b242
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/actions/oblt-cli-cluster-credentials/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ runs:
uses: actions/github-script@v6
with:
script: |
const clusterName = core.getInput('cluster-name')
const clusterInfoFile = core.getInput('cluster-info-file')
const clusterName = process.env.CLUSTER_NAME_INPUT
const clusterInfoFile = process.env.CLUSTER_INFO_FILE_INPUT
console.log(`clusterName is "${clusterName}"`)
console.log(`clusterInfoFile is "${clusterInfoFile}"`)
Expand All @@ -54,6 +54,9 @@ runs:
core.setFailed(`cluster name is empty`)
}
core.exportVariable('CLUSTER_NAME', `${cluster}`)
env:
CLUSTER_NAME_INPUT: ${{ inputs.cluster-name }}
CLUSTER_INFO_FILE_INPUT: ${{ inputs.cluster-info-file }}

- uses: elastic/apm-pipeline-library/.github/actions/setup-oblt-cli@current
with:
Expand Down

0 comments on commit 067b242

Please sign in to comment.