Skip to content

Commit

Permalink
Add instructions in README
Browse files Browse the repository at this point in the history
  • Loading branch information
izackwu committed Jun 28, 2020
1 parent 9936469 commit f5c16b0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# tencent-cloud-cdn-purge-cache
Purge Cache for Tencent Cloud CDN
# Tencent Cloud CDN Purge Cache

This action purges cache for Tencent Cloud CDN via its Python SDK API.

## Environment Variables

To use this Github action, you need to set the following environment variable in your workflow:

| Name | Description | Required |
| --- | --- | --- |
| SECRET_ID | your Tencent Cloud access token Secret ID | Yes |
| SECRET_KEY | your Tencent Cloud access token Secret Key | Yes |
| PATHS | paths to purge cache for, separated with comma `,` | Yes |
| FLUSH_TYPE | `flush` (default) to purge only modified resources or `delete` to purge all | No |

## Example Usage

```yaml
uses: keithnull/[email protected]
id: example
env:
SECRET_ID: ${{ secrets.SECRET_ID}}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
PATHS: "https://example.com/foo/,https://example.com/bar/"
```

0 comments on commit f5c16b0

Please sign in to comment.