forked from solvaholic/octodns-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
50 lines (49 loc) · 1.53 KB
/
action.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
# action.yml
# https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions
name: 'octodns-sync'
description: 'Run octodns/octodns to deploy your DNS config to any cloud.'
inputs:
add_pr_comment:
description: 'Add plan as a comment, when triggered by a pull request?'
required: true
default: 'No'
config_path:
description: 'Path, relative to your repository root, of the config file
you would like octodns to use.'
required: true
default: 'public.yaml'
doit:
description: 'Really do it? Set "--doit" to do it; Any other string to
not do it.'
required: false
default: ''
pr_comment_token:
description: 'Provide a token to use, if you set add_pr_comment to Yes.'
required: true
default: 'Not set'
outputs:
plan:
description: 'Planned changes, if configured in octodns'
value: ${{ steps.run.outputs.plan}}
runs:
using: 'composite'
steps:
- name: Run octodns-sync
id: run
env:
CONFIG_PATH: ${{ inputs.config_path }}
DOIT: ${{ inputs.doit }}
run: ${{ github.action_path }}/scripts/run.sh
shell: bash
working-directory: ${{ github.workspace }}
- name: Add pull request comment
id: comment
env:
ADD_PR_COMMENT: ${{ inputs.add_pr_comment }}
PR_COMMENT_TOKEN: ${{ inputs.pr_comment_token }}
run: ${{ github.action_path }}/scripts/comment.sh
shell: bash
working-directory: ${{ github.workspace }}
branding:
icon: 'list'
color: 'purple'