diff --git a/_docs/data/data.yaml b/_docs/data/data.yaml index 1a938b2..7a3d332 100644 --- a/_docs/data/data.yaml +++ b/_docs/data/data.yaml @@ -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 diff --git a/cmd/drone-git-action/config.go b/cmd/drone-git-action/config.go index fbb7a7c..6a764fd 100644 --- a/cmd/drone-git-action/config.go +++ b/cmd/drone-git-action/config.go @@ -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, },