Interface GenerateActionsWorkflow
- All Superinterfaces:
Comparable<Task>,ExtensionAware,Named,Task
This task generates the GitHub Actions workflow file for the project.
If the project is also using the Git Version plugin (currently auto-applied by GradleUtils), it will respect any declared subprojects.
- Implementation Note:
- See
GenerateActionsWorkflowImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer -
Field Summary
FieldsFields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Method Summary
Modifier and TypeMethodDescriptionThe branch name to use in the workflow file.The Java version to invoke Gradle with.The local path from the root project to the current project to use in the workflow file.The output file for this task.getPaths()The paths to pass into the workflow file.The project name to use in the workflow file.The Shared Actions branch to use with this workflow.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Field Details
-
NAME
-
-
Method Details
-
getOutputFile
The output file for this task.Default:
rootProject/.github/workflows/publish_name.yaml- Returns:
- The property for the output file
-
getProjectName
The project name to use in the workflow file.
Default:
Project.getName()- Returns:
- The property for the project name
-
getBranch
-
getLocalPath
The local path from the root project to the current project to use in the workflow file. This local path is not used to invoke Gradle but rather for Git Version.- Returns:
- The property for the local path
-
getPaths
The paths to pass into the workflow file. Prepend a path with!to ignore it instead of include it. The Git Version plugin will automatically add declared subproject paths to exclude.- Returns:
- The property for the paths
-
getGradleJavaVersion
-