0
0
mirror of https://github.com/thegeeklab/wp-git-action.git synced 2024-11-25 19:10:41 +00:00
wp-git-action/data/data.yaml

146 lines
3.7 KiB
YAML
Raw Normal View History

2023-08-15 07:44:17 +00:00
---
properties:
- name: action
description: |
2024-01-03 21:29:57 +00:00
Git action to execute.
Supported actions: `clone | commit | push | pages`. Specified actions are executed in the specified order
2023-08-15 07:44:17 +00:00
- **clone:** Clones the repository in `remote_url` and checks out the `branch` to `path`.
- **commit:** Adds a commit to the default repository or the repository in `remote_url`.
- **push:** Pushes all commits to the default repository or the repository set in `remote_url`.
- **pages:** The `pages` action is a special action that cannot be combined with other actions. It is intended for use for
GitHub pages. It synchronizes the contents of `pages_directory` with the target `branch` using `rsync` and pushes the changes automatically.
type: list
required: true
- name: author_email
2024-01-03 21:29:57 +00:00
description: |
Git author email.
2023-08-15 07:44:17 +00:00
type: string
2024-01-03 21:29:57 +00:00
required: true
2023-08-15 07:44:17 +00:00
2024-01-03 21:29:57 +00:00
- name: author_name
description: |
Git author name.
2023-08-15 07:44:17 +00:00
type: string
2024-01-03 21:29:57 +00:00
required: true
2023-08-15 07:44:17 +00:00
- name: branch
2024-01-03 21:29:57 +00:00
description: |
Name of the git source branch.
2023-08-15 07:44:17 +00:00
type: string
2024-01-03 21:29:57 +00:00
defaultvalue: "main"
required: false
2023-08-15 07:44:17 +00:00
2024-01-03 21:29:57 +00:00
- name: empty_commit
description: |
Allow empty commits.
2023-08-15 07:44:17 +00:00
2024-01-03 21:29:57 +00:00
Usually recording a commit that has the exact same tree as its sole parent commit is a mistake,
and those commits are not allowed by default.
2023-08-15 07:44:17 +00:00
type: bool
2024-01-03 21:29:57 +00:00
defaultvalue: false
required: false
2023-08-15 07:44:17 +00:00
- name: followtags
2024-01-03 21:29:57 +00:00
description: |
Follow tags for pushes to remote repository.
Push all the `refs` that would be pushed without this option, and also push annotated tags
in `refs/tags` that are missing from the remote.
type: bool
2023-08-15 07:44:17 +00:00
defaultvalue: false
2024-01-03 21:29:57 +00:00
required: false
- name: force
description: |
Enable force push to remote repository.
2023-08-15 07:44:17 +00:00
type: bool
2024-01-03 21:29:57 +00:00
defaultvalue: false
required: false
2023-08-15 07:44:17 +00:00
2023-12-23 23:24:17 +00:00
- name: insecure_skip_ssl_verify
description: |
2024-01-03 21:29:57 +00:00
Skip ssl verification of the remote machine.
2023-08-15 07:44:17 +00:00
2024-01-03 21:29:57 +00:00
Activating this option is insecure and should be avoided in most cases.
2023-08-15 07:44:17 +00:00
type: bool
2024-01-03 21:29:57 +00:00
defaultvalue: false
required: false
- name: message
description: |
Commit message.
type: string
defaultvalue: "[skip ci] commit dirty state"
required: false
- name: netrc_machine
description: |
Netrc remote machine name.
type: string
defaultvalue: "github.com"
required: false
- name: netrc_password
description: |
Netrc login password on the remote machine.
type: string
required: false
- name: netrc_username
description: |
Netrc login user on the remote machine.
type: string
defaultvalue: "token"
required: false
2023-08-15 07:44:17 +00:00
- name: no_verify
2024-01-03 21:29:57 +00:00
description: |
Bypass the pre-commit and commit-msg hooks.
type: bool
2023-08-15 07:44:17 +00:00
defaultvalue: false
2024-01-03 21:29:57 +00:00
required: false
- name: pages_delete
description: |
Add delete flag to pages rsync command.
When set to `true`, the `--delete` flag is added to the rsync command to remove files
from the branch that do not exist in the `pages_directory` either.
2023-08-15 07:44:17 +00:00
type: bool
2024-01-03 21:29:57 +00:00
defaultvalue: true
required: false
2023-08-15 07:44:17 +00:00
- name: pages_directory
2024-01-03 21:29:57 +00:00
description: |
Source directory to be synchronized with the pages branch.
2023-08-15 07:44:17 +00:00
type: string
2024-01-03 21:29:57 +00:00
defaultvalue: "docs/"
required: false
2023-08-15 07:44:17 +00:00
- name: pages_exclude
2024-01-03 21:29:57 +00:00
description: |
Files or directories to exclude from the pages rsync command.
2023-08-15 07:44:17 +00:00
type: list
2024-01-03 21:29:57 +00:00
required: false
2023-08-15 07:44:17 +00:00
2024-01-03 21:29:57 +00:00
- name: path
description: |
Path to clone git repository.
type: string
required: false
- name: remote_url
description: |
Url of the remote repository.
type: string
required: false
- name: ssh_key
description: |
Ssh private key for the remote repository.
type: string
required: false