@@ -10,50 +10,43 @@ This action installs the IBM Cloud CLI and authenticates with IBM Cloud so you c
1010### Example
1111
1212``` yaml
13- name : My workflow
14- on : [push, pull_request]
15- jobs :
16- test :
17- runs-on : ubuntu-latest
18- steps :
19- - uses : actions/checkout@v4
20- - name : Set up ibmcloud CLI
21- uses : IBM/actions-ibmcloud-cli@v1
22- with :
23- api_key : ${{ secrets.IBMCLOUD_API_KEY }}
24- region : us-south
25- group : default
26- plugins : container-service, secrets-manager
27- - run : ibmcloud --version
13+ steps :
14+ - name : Set up ibmcloud CLI
15+ uses : IBM/actions-ibmcloud-cli@v1
16+ with :
17+ api_key : ${{ secrets.IBMCLOUD_API_KEY }}
18+ region : us-south
19+ group : default
20+ plugins : container-service, secrets-manager
21+ - name : Run an ibmcloud CLI command
22+ run : ibmcloud --version
2823` ` `
2924
3025### Inputs
3126
32- - ` api_key`: (optional) API Key to login to IBM Cloud
27+ - ` api_key`: (optional) API Key to login to IBM Cloud obtained from your [IAM settings](https://cloud.ibm.com/iam/apikeys).
3328
3429 If not provided, no attempt will be made to login in and you will need to login with the IBM Cloud CLI directly in a subsequent step.
3530
36- - `region` : (optional - default: `us-south`) Region to access on IBM Cloud
31+ - `region` : (optional - default: `us-south`) Region to access on IBM Cloud.
3732
38- - `group` : (optional - default: `default`) Resource group to access on IBM Cloud
33+ - `group` : (optional - default: `default`) Resource group to access on IBM Cloud.
3934
40- - `api` : (optional - default: `https://cloud.ibm.com`) API endpoint to IBM Cloud
35+ - `api` : (optional - default: `https://cloud.ibm.com`) API endpoint to IBM Cloud.
4136
4237- `plugins` : (optional) A comma, space, or newline separated list of CLI plugins to be installed.
4338
44- The plugins can listed as `PLUGIN_NAME` (e.g. `container-service`) or `PLUGIN_NAME@VERSION` (e.g. `container-service@0.4.102`)
39+ The plugins can listed by name (e.g. `container-service`) or with a specific version (e.g. `container-service@0.4.102`).
4540
46- For more information about plugins see https://cloud.ibm.com/docs/cli?topic=cli-plug-ins
41+ For more information about plugins see [Extending IBM Cloud CLI with plug-ins]( https://cloud.ibm.com/docs/cli?topic=cli-plug-ins).
4742
4843 Examples :
4944
5045 ` ` ` yaml
5146 plugins: container-service@0.4.102, secrets-manager
52- ` ` `
53- ` ` ` yaml
47+
5448 plugins: container-service@0.4.102 secrets-manager
55- ` ` `
56- ` ` ` yaml
49+
5750 plugins: |
5851 container-service@0.4.102
5952 secrets-manager
@@ -67,14 +60,13 @@ jobs:
6760
6861 ` ` ` yaml
6962 steps:
70- - uses: actions/checkout@v4
71- - name: Set up ibmcloud CLI
72- id: ibmcloud
73- uses: IBM/actions-ibmcloud-cli@v1
74- - run: ibmcloud --version
75- # => ibmcloud 2.31.0 (6b1eddc-2024-12-05T17:30:20+00:00)
76- - run: echo The version installed is ${{ steps.ibmcloud.outputs.version }}
77- # => The version installed is 2.31.0
63+ - name: Set up ibmcloud CLI
64+ id: ibmcloud
65+ uses: IBM/actions-ibmcloud-cli@v1
66+ - run: ibmcloud --version
67+ # => ibmcloud 2.31.0 (6b1eddc-2024-12-05T17:30:20+00:00)
68+ - run: echo The version installed is ${{ steps.ibmcloud.outputs.version }}
69+ # => The version installed is 2.31.0
7870 ` ` `
7971
8072# ## Supported Platforms
0 commit comments