File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99import io.github.typesafegithub.workflows.actions.actions.Checkout
1010import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
1111import io.github.typesafegithub.workflows.annotations.ExperimentalKotlinLogicStep
12+ import io.github.typesafegithub.workflows.domain.Environment
1213import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
1314import io.github.typesafegithub.workflows.domain.triggers.PullRequest
1415import io.github.typesafegithub.workflows.domain.triggers.Push
@@ -103,9 +104,7 @@ workflow(
103104 " DOCKERHUB_USERNAME" to expr { DOCKERHUB_USERNAME },
104105 " DOCKERHUB_PASSWORD" to expr { DOCKERHUB_PASSWORD },
105106 ),
106- _customArguments = mapOf (
107- " environment" to " DockerHub" ,
108- )
107+ environment = Environment (name = " DockerHub" ),
109108 ) {
110109 uses(action = Checkout ())
111110 uses(action = ActionsSetupGradle ())
Original file line number Diff line number Diff line change 6363 DOCKERHUB_USERNAME : ' ${{ secrets.DOCKERHUB_USERNAME }}'
6464 DOCKERHUB_PASSWORD : ' ${{ secrets.DOCKERHUB_PASSWORD }}'
6565 if : ' ${{ github.event_name == '' push'' }}'
66- environment : ' DockerHub'
66+ environment :
67+ name : ' DockerHub'
6768 steps :
6869 - id : ' step-0'
6970 uses : ' actions/checkout@v4'
You can’t perform that action at this time.
0 commit comments