-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
40 lines (40 loc) · 1.55 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
name: Retype Action for GitHub Pages
author: Object.NET, Inc.
description: |-
Publishes a Retype website to a branch, directory, or creates a pull request.
inputs:
branch:
description: |-
The name of the target branch where the Retype output will be committed.
Default is "retype"
required: false
directory:
description: |-
The relative path within the repo/branch where to commit the Retype output.
Useful if you use GitHub pages to host from the "docs" folder on "main"
branch. Defaults to root of the branch.
required: false
update-branch:
description: |-
Set as true to push changes directly to the target branch, even if it
already exists. This will avoid the need for the action to create a pull
request. Default is false.
required: false
github-token:
description: |-
A GitHub Token used by the action to create a pull request in cases where
a new uniquely named branch is created. If the target branch exists and
"update-branch" is not true, then a pull request to merge the temporary
branch will be created. If this option is not set, the action may push a
new branch but will not create a pull request. Default is empty.
required: false
runs:
using: "composite"
steps:
- run: "${GITHUB_ACTION_PATH}/github.sh"
shell: bash
env:
INPUT_BRANCH: ${{ inputs.branch }}
INPUT_DIRECTORY: ${{ inputs.directory }}
INPUT_UPDATE_BRANCH: ${{ inputs.update-branch }}
INPUT_GITHUB_TOKEN: ${{ inputs.github-token }}