Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/softprops/setup-fastly-cli
A GitHub Action for setting up and configuring the Fastly command line interface
https://github.com/softprops/setup-fastly-cli
fastly fastly-cli github-actions
Last synced: about 1 month ago
JSON representation
A GitHub Action for setting up and configuring the Fastly command line interface
- Host: GitHub
- URL: https://github.com/softprops/setup-fastly-cli
- Owner: softprops
- License: mit
- Created: 2020-05-16T03:09:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-27T11:50:18.000Z (over 2 years ago)
- Last Synced: 2024-10-11T12:41:08.538Z (3 months ago)
- Topics: fastly, fastly-cli, github-actions
- Language: TypeScript
- Homepage:
- Size: 112 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Setup Fastly CLI
> ⏲️A GitHub Action for setting up and configuring the [Fastly command line interface](https://github.com/fastly/cli)
## usage
Create a [Fastly API token](https://manage.fastly.com/account/personal/tokens). These tokens are not meant to be shared. Keep them secret by storing them in your GitHub repository's [actions secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets).
Add a step to your workflow to install and configure the Fastly CLI
```yml
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Fastly CLI
uses: softprops/setup-fastly-cli@v1
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
- name: Enjoy
run: fastly whoami
```#### inputs
| Name | Type | Description |
|-------------|---------|-----------------------------------------------------------------|
| `version` | string | version of [Fastly cli release](https://github.com/fastly/cli/releases) defaults to latest version |#### env
| Name | Type | Description |
|-------------|---------|-----------------------------------------------------------------|
| `FASTLY_API_TOKEN` | string | personal [Fastly API token](https://manage.fastly.com/account/personal/tokens) |Doug Tangren (softprops) 2020