Skip to content

Commit

Permalink
credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig committed Feb 23, 2024
1 parent c9d102e commit ba5c78a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/dnscontrol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- main
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }}
PORKBUN_API_SECRET: ${{ secrets.PORKBUN_API_SECRET }}

jobs:
dnscontrol:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }}
PORKBUN_API_SECRET: ${{ secrets.PORKBUN_API_SECRET }}

jobs:
dnscontrol:
runs-on: ubuntu-latest
Expand All @@ -20,15 +25,15 @@ jobs:
with:
args: check
config_file: 'dnscontrol.js'
creds_file: 'creds.json'
creds_file: 'creds.example.json'

- name: Preview
id: dnscontrol_preview
uses: koenrh/dnscontrol-action@v3
with:
args: preview
config_file: 'dnscontrol.js'
creds_file: 'creds.json'
creds_file: 'creds.example.json'

- name: Comment
uses: mshick/add-pr-comment@v1
Expand Down

0 comments on commit ba5c78a

Please sign in to comment.