Update README

This commit is contained in:
Koen Rouwhorst 2021-01-16 18:34:49 +01:00
parent c719428674
commit 8c4b2743ec

View file

@ -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