mirror of
https://github.com/koenrh/dnscontrol-action.git
synced 2024-09-20 03:55:56 +08:00
Update README
This commit is contained in:
parent
78ca13713b
commit
a26abcb30c
21
README.md
21
README.md
|
@ -30,8 +30,11 @@ jobs:
|
|||
uses: koenrh/dnscontrol-action@v3
|
||||
with:
|
||||
args: check
|
||||
dnscontrol_config_file: '.' # optional path to dnsconfig.js.
|
||||
dnscontrol_creds_file: '.' # optional path to creds.json.
|
||||
|
||||
# Optionally, if your DNSConfig files are in a non-default location,
|
||||
# you could specify the paths to the config and credentials file.
|
||||
config_file: 'dns/dnsconfig.js'
|
||||
creds_file: 'dns/creds.json'
|
||||
```
|
||||
|
||||
### preview
|
||||
|
@ -58,8 +61,11 @@ jobs:
|
|||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
with:
|
||||
args: preview
|
||||
dnscontrol_config_file: '.' # optional path to dnsconfig.js.
|
||||
dnscontrol_creds_file: '.' # optional path to creds.json.
|
||||
|
||||
# Optionally, if your DNSConfig files are in a non-default location,
|
||||
# you could specify the paths to the config and credentials file.
|
||||
config_file: 'dns/dnscontrol.js'
|
||||
creds_file: 'dns/creds.json'
|
||||
```
|
||||
|
||||
This is the action you probably want to run for each branch so that proposed changes
|
||||
|
@ -134,8 +140,11 @@ jobs:
|
|||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
with:
|
||||
args: push
|
||||
dnscontrol_config_file: '.' # optional path to dnsconfig.js.
|
||||
dnscontrol_creds_file: '.' # optional path to creds.json.
|
||||
|
||||
# Optionally, if your DNSConfig files are in a non-default location,
|
||||
# you could specify the paths to the config and credentials file.
|
||||
config_file: 'dns/dnsconfig.js'
|
||||
creds_file: 'dns/creds.json'
|
||||
```
|
||||
|
||||
## Credentials
|
||||
|
|
Loading…
Reference in a new issue