mirror of
https://github.com/thegeeklab/wp-git-action.git
synced 2024-11-24 12:40:39 +00:00
chore: rename parameter remote to remote_url (#8)
BREAKING CHANGE: The option `remote` was renamed to `remote_url`.
This commit is contained in:
parent
e8c4aad467
commit
2160d9ac22
@ -4,9 +4,9 @@ properties:
|
||||
description: |
|
||||
Git actions to be executed. Supported actions: `clone | commit | push | pages`. Specified actions are executed in the specified order
|
||||
|
||||
- **clone:** Clones the repository in `remote` and checks out the `branch` to `path`.
|
||||
- **commit:** Adds a commit to the default drone repository or the repository in `remote`.
|
||||
- **push:** Pushes all commits to the default drone repository or the repository set in `remote`.
|
||||
- **clone:** Clones the repository in `remote_url` and checks out the `branch` to `path`.
|
||||
- **commit:** Adds a commit to the default drone repository or the repository in `remote_url`.
|
||||
- **push:** Pushes all commits to the default drone 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.
|
||||
required: true
|
||||
@ -40,7 +40,7 @@ properties:
|
||||
description: SSH private key for the remote repository.
|
||||
type: string
|
||||
|
||||
- name: remote
|
||||
- name: remote_url
|
||||
description: URL of the remote repository.
|
||||
type: string
|
||||
|
||||
|
@ -65,9 +65,9 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
|
||||
},
|
||||
|
||||
&cli.StringFlag{
|
||||
Name: "remote",
|
||||
Name: "remote-url",
|
||||
Usage: "url of the remote repository",
|
||||
EnvVars: []string{"PLUGIN_REMOTE", "DRONE_REMOTE_URL"},
|
||||
EnvVars: []string{"PLUGIN_REMOTE_URL", "DRONE_REMOTE_URL"},
|
||||
Destination: &settings.Repo.RemoteURL,
|
||||
Category: category,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user