Skip to content

Commit

Permalink
modify readme (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoChilia authored Apr 22, 2024
1 parent 4dd0d30 commit ce13c59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ jobs:
run: |
ncc build -C -m src/entrypoint.ts
- name: Test - Postive
- name: Specific version test- Postive
uses: ./
with:
azcliversion: 2.30.0
inlineScript: |
az --version
- name: Latest version test - Postive
uses: ./
with:
azcliversion: latest
inlineScript: |
az --version
- name: Default version test - Postive
uses: ./
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The definition of this GitHub Action is in [action.yml](https://github.com/Azure
* [Azure Login](https://github.com/Azure/login)**Optional** Login with your Azure credentials, required only for authentication via Azure credentials. If you use this action, make sure to either use the default value of `azcliversion` or `azcliversion >= 2.30.0` for all the workflows. Authentication via connection strings or keys do not require this step.
* [Checkout](https://github.com/actions/checkout)**Optional** To execute the scripts present in your repository.

### Workflow to execute an Azure CLI script of a specific CLI version
### Workflow to execute an Azure CLI script of the latest Azure CLI version
```yaml
# File: .github/workflows/workflow.yml

Expand All @@ -49,7 +49,7 @@ jobs:
- name: Azure CLI script
uses: azure/cli@v2
with:
azcliversion: 2.30.0
azcliversion: latest
inlineScript: |
az account show
az storage -h
Expand Down

0 comments on commit ce13c59

Please sign in to comment.