-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.01 KB
/
pr-preview.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Preview DNS Changes
on:
pull_request:
jobs:
deploy:
name: Run DNS Control in Preview mode
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pull-requests: write
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::171269869827:role/GitHubMattCantyDNSActionsRead
aws-region: eu-west-2
- name: Git clone the repository
uses: actions/checkout@v2
- name: DNSControl check
uses: koenrh/dnscontrol-action@v3
with:
args: check
- name: DNSControl preview
id: dnscontrol_preview
uses: koenrh/dnscontrol-action@v3
with:
args: preview
- uses: mshick/add-pr-comment@v1
with:
message: |
```
${{ steps.dnscontrol_preview.outputs.preview_comment }}
```
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: true