https://github.com/dapr/setup-dapr
GitHub Action for installing the Dapr CLI
https://github.com/dapr/setup-dapr
Last synced: about 1 month ago
JSON representation
GitHub Action for installing the Dapr CLI
- Host: GitHub
- URL: https://github.com/dapr/setup-dapr
- Owner: dapr
- License: apache-2.0
- Created: 2021-05-24T16:59:46.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T03:31:22.000Z (8 months ago)
- Last Synced: 2024-10-13T18:17:43.075Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 909 KB
- Stars: 10
- Watchers: 3
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Setup Dapr CLI
## Install a specific version of Dapr CLI on a GitHub Actions runner
Acceptable values are any semantic version string like 1.13.0. Use this action in workflow to define which version of Dapr CLI will be used.
```yaml
- name: Setup Dapr CLI specific version
uses: dapr/setup-dapr@v1
with:
version: "1.13.0"
id: install
```The cached Dapr CLI path is added to the PATH environment variable as well as stored in the dapr-path output variable.
Refer to the action metadata file for details about all the inputsThis action does not initialize the Dapr Runtime. To do this add another step to initialize like this and remember that Dapr CLI and Dapr Runtime versions may differ:
```yaml
- name: Initialize Dapr
if: ${{ matrix.os == 'ubuntu-latest'}}
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
dapr init --runtime-version=1.13.0
dapr --version
```For a complete example see [./.github/workflows/test.yaml](./.github/workflows/test.yml)
## Code of Conduct
Please refer to our [Dapr Community Code of Conduct](https://github.com/dapr/community/blob/master/CODE-OF-CONDUCT.md)