Add Cantonite website #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |