[GH-ISSUE #239] Workflow fails from second time because dependencies are already installed #163

Closed
opened 2026-03-01 21:40:47 +03:00 by kerem · 2 comments
Owner

Originally created by @vibin on GitHub (May 16, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/239

I have the below job as part of a workflow.

- name: Install sdkman, kotlin, kscript
  if: steps.prereq.outputs.triggered == 'true'
  run: |
    curl -s "https://get.sdkman.io" | bash
    source "$HOME/.sdkman/bin/sdkman-init.sh"
    sdk install kotlin
    sdk install kscript

This ran fine during the first execution of "act issue_comment -e action-sample.json --verbose -P ubuntu-latest=nektos/act-environments-ubuntu:18.04". From the second time, I keep seeing errors "Previous installation of sdkman found. kotlin 1.3.72 is already installed", etc.

I've tried docker-kill and docker-rm'ing the containers but no luck. I'm not using the "--reuse" swtich.

Originally created by @vibin on GitHub (May 16, 2020). Original GitHub issue: https://github.com/nektos/act/issues/239 I have the below job as part of a workflow. ```yaml - name: Install sdkman, kotlin, kscript if: steps.prereq.outputs.triggered == 'true' run: | curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" sdk install kotlin sdk install kscript ``` This ran fine during the first execution of "act issue_comment -e action-sample.json --verbose -P ubuntu-latest=nektos/act-environments-ubuntu:18.04". From the second time, I keep seeing errors "Previous installation of sdkman found. kotlin 1.3.72 is already installed", etc. I've tried docker-kill and docker-rm'ing the containers but no luck. I'm not using the "--reuse" swtich.
kerem 2026-03-01 21:40:47 +03:00
Author
Owner

@vibin commented on GitHub (May 19, 2020):

Probably a dupe of #237

<!-- gh-comment-id:630747543 --> @vibin commented on GitHub (May 19, 2020): Probably a dupe of #237
Author
Owner

@cplee commented on GitHub (May 20, 2020):

closing as duplicate of #237

<!-- gh-comment-id:631553450 --> @cplee commented on GitHub (May 20, 2020): closing as duplicate of #237
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#163
No description provided.