forked from andrewthetechie/gha-repo-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
39 lines (39 loc) · 1.93 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
name: "Manage Administrative Repository Settings from Pull-Requests"
description: Manage all Github repo settings from a YAML file, enabling greater change control, transparency, and auditability.
author: "actuarysailor"
inputs:
action:
description: What action to take with this action. One of validate, check, or apply. Validate will validate your settings file, but not touch your repo. Check will check your repo with your settings file and output a report of any drift. Apply will apply the settings in your settings file to your repo
default: "check"
settings_file:
description: What yaml file to use as your settings. This is local to runner running this action.
default: ".github/settings.yml"
repo:
description: What repo to perform this action on. Default is self, as in the repo this action is running in
default: "self"
github_server_url:
description: Set a custom github server url for github api operations. Useful if you're running on GHE. Will try to autodiscover from env.GITHUB_SERVER_URL if left at default
token:
description: What github token to use with this action (one of token or app_id is required).
required: False
app_id:
description: What github app id to use with this action (one of token or app_id is required).
required: False
private_key:
description: What github app private key to use with this action (required if using an app_id to authenticate).
multiline: true
required: False
fail_on_diff:
description: Fail the action if the repo settings differ from the settings file. Default is false. Note, this only applies if the action is set to 'check'
default: False
outputs:
result:
description: "Result of the action"
diff:
description: "Diff of this action, dumped to a json string"
runs:
using: "docker"
image: "docker://ghcr.io/actuarysailor/gha-repo-manager:v2.2.3" # x-release-please-version
branding:
icon: "settings"
color: "blue"