Polish gh-11183
Fixed typo in plugin for setting workflowId and added missing repository() closure
This commit is contained in:
parent
ca0a6d9777
commit
1295b793b3
|
@ -16,6 +16,7 @@
|
|||
|
||||
package org.springframework.gradle.github.release;
|
||||
|
||||
import org.gradle.api.Action;
|
||||
import org.gradle.api.DefaultTask;
|
||||
import org.gradle.api.tasks.Input;
|
||||
import org.gradle.api.tasks.TaskAction;
|
||||
|
@ -49,6 +50,10 @@ public class DispatchGitHubWorkflowTask extends DefaultTask {
|
|||
return repository;
|
||||
}
|
||||
|
||||
public void repository(Action<RepositoryRef> repository) {
|
||||
repository.execute(this.repository);
|
||||
}
|
||||
|
||||
public void setRepository(RepositoryRef repository) {
|
||||
this.repository = repository;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public class GitHubReleasePlugin implements Plugin<Project> {
|
|||
dispatchGitHubWorkflow.setDescription("Create a workflow_dispatch event on a given branch");
|
||||
|
||||
dispatchGitHubWorkflow.setBranch((String) project.findProperty("branch"));
|
||||
dispatchGitHubWorkflow.setBranch((String) project.findProperty("workflowId"));
|
||||
dispatchGitHubWorkflow.setWorkflowId((String) project.findProperty("workflowId"));
|
||||
dispatchGitHubWorkflow.setGitHubAccessToken((String) project.findProperty("gitHubAccessToken"));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue