2022-11-28 14:36:01 +00:00
|
|
|
---
|
|
|
|
properties:
|
2022-12-02 21:21:35 +00:00
|
|
|
- name: action
|
|
|
|
description: |
|
2024-01-03 21:22:54 +00:00
|
|
|
Git action to execute.
|
|
|
|
|
|
|
|
Supported actions: `clone | commit | push | pages`. Specified actions are executed in the specified order
|
2022-12-02 21:21:35 +00:00
|
|
|
|
2022-12-02 21:34:11 +00:00
|
|
|
- **clone:** Clones the repository in `remote_url` and checks out the `branch` to `path`.
|
2023-08-14 19:19:39 +00:00
|
|
|
- **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`.
|
2022-12-02 21:21:35 +00:00
|
|
|
- **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.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: list
|
|
|
|
required: true
|
|
|
|
|
|
|
|
- name: author_email
|
2024-01-03 21:22:54 +00:00
|
|
|
description: |
|
|
|
|
Git author email.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: string
|
2024-01-03 21:22:54 +00:00
|
|
|
required: true
|
2022-11-28 14:36:01 +00:00
|
|
|
|
2024-01-03 21:22:54 +00:00
|
|
|
- name: author_name
|
|
|
|
description: |
|
|
|
|
Git author name.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: string
|
2024-01-03 21:22:54 +00:00
|
|
|
required: true
|
2022-11-28 14:36:01 +00:00
|
|
|
|
|
|
|
- name: branch
|
2024-01-03 21:22:54 +00:00
|
|
|
description: |
|
|
|
|
Name of the git source branch.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: string
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: "main"
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-11-28 14:36:01 +00:00
|
|
|
|
2024-01-03 21:22:54 +00:00
|
|
|
- name: empty_commit
|
|
|
|
description: |
|
|
|
|
Allow empty commits.
|
2022-11-28 14:36:01 +00:00
|
|
|
|
2024-01-03 21:22:54 +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.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: bool
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: false
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-11-28 14:36:01 +00:00
|
|
|
|
|
|
|
- name: followtags
|
2024-01-03 21:22:54 +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
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: false
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
|
|
|
|
|
|
|
- name: force
|
|
|
|
description: |
|
|
|
|
Enable force push to remote repository.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: bool
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: false
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-11-28 14:36:01 +00:00
|
|
|
|
2024-05-05 20:14:55 +00:00
|
|
|
- name: insecure_skip_verify
|
2023-12-23 23:17:55 +00:00
|
|
|
description: |
|
2024-05-05 20:14:55 +00:00
|
|
|
Skip SSL verification.
|
2022-11-28 14:36:01 +00:00
|
|
|
|
2024-01-03 21:22:54 +00:00
|
|
|
Activating this option is insecure and should be avoided in most cases.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: bool
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: false
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
|
|
|
|
2024-05-05 20:14:55 +00:00
|
|
|
- name: log_level
|
|
|
|
description: |
|
|
|
|
Plugin log level.
|
|
|
|
type: string
|
|
|
|
defaultValue: "info"
|
|
|
|
required: false
|
|
|
|
|
2024-01-03 21:22:54 +00:00
|
|
|
- name: message
|
|
|
|
description: |
|
|
|
|
Commit message.
|
|
|
|
type: string
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: "[skip ci] commit dirty state"
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
|
|
|
|
|
|
|
- name: netrc_machine
|
|
|
|
description: |
|
|
|
|
Netrc remote machine name.
|
|
|
|
type: string
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: "github.com"
|
2024-01-03 21:22:54 +00:00
|
|
|
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
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: "token"
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-11-28 14:36:01 +00:00
|
|
|
|
|
|
|
- name: no_verify
|
2024-01-03 21:22:54 +00:00
|
|
|
description: |
|
|
|
|
Bypass the pre-commit and commit-msg hooks.
|
|
|
|
type: bool
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: false
|
2024-01-03 21:22:54 +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.
|
2022-11-28 14:36:01 +00:00
|
|
|
type: bool
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: true
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-12-02 21:21:35 +00:00
|
|
|
|
|
|
|
- name: pages_directory
|
2024-01-03 21:22:54 +00:00
|
|
|
description: |
|
|
|
|
Source directory to be synchronized with the pages branch.
|
2022-12-02 21:21:35 +00:00
|
|
|
type: string
|
2024-01-03 22:26:13 +00:00
|
|
|
defaultValue: "docs/"
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-12-02 21:21:35 +00:00
|
|
|
|
|
|
|
- name: pages_exclude
|
2024-01-03 21:22:54 +00:00
|
|
|
description: |
|
|
|
|
Files or directories to exclude from the pages rsync command.
|
2022-12-02 21:21:35 +00:00
|
|
|
type: list
|
2024-01-03 21:22:54 +00:00
|
|
|
required: false
|
2022-12-02 21:21:35 +00:00
|
|
|
|
2024-01-03 21:22:54 +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
|