0
0
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:
Robert Kaussow 2022-12-02 22:34:11 +01:00 committed by GitHub
parent e8c4aad467
commit 2160d9ac22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -4,9 +4,9 @@ properties:
description: | description: |
Git actions to be executed. Supported actions: `clone | commit | push | pages`. Specified actions are executed in the specified order 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`. - **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`. - **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`. - **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 - **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. GitHub pages. It synchronizes the contents of `pages_directory` with the target `branch` using `rsync` and pushes the changes automatically.
required: true required: true
@ -40,7 +40,7 @@ properties:
description: SSH private key for the remote repository. description: SSH private key for the remote repository.
type: string type: string
- name: remote - name: remote_url
description: URL of the remote repository. description: URL of the remote repository.
type: string type: string

View File

@ -65,9 +65,9 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "remote", Name: "remote-url",
Usage: "url of the remote repository", 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, Destination: &settings.Repo.RemoteURL,
Category: category, Category: category,
}, },