[GH-ISSUE #236] Failure running github action when using act on windows #165

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

Originally created by @dtracers on GitHub (May 14, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/236

When I try and use the gcloud action it fails to find it

  #gcloud
  - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
    with:
      export_default_credentials: true

^ this is how i am using it

?[34m|?[0m Error: Cannot find module '/github/workspace/\actions\GoogleCloudPlatform-github-actions-setup-gcloud@master\setup-gcloud\dist\index.js'
?[34m|?[0m ?[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)?[39m
?[34m|?[0m ?[90m    at Function.Module._load (internal/modules/cjs/loader.js:864:27)?[39m
?[34m|?[0m ?[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)?[39m
?[34m|?[0m ?[90m    at internal/main/run_main_module.js:18:47?[39m {
?[34m|?[0m   code: ?[32m'MODULE_NOT_FOUND'?[39m,
?[34m|?[0m   requireStack: []
?[34m|?[0m }
?[34m[End to End/End to End] ?[0m  ❌  Failure - GoogleCloudPlatform/github-actions/setup-gcloud@master
Error: exit with `FAILURE`: 1

and this is what it ends up saying

my command is:
act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -j gcloudaction

Originally created by @dtracers on GitHub (May 14, 2020). Original GitHub issue: https://github.com/nektos/act/issues/236 When I try and use the gcloud action it fails to find it ``` #gcloud - uses: GoogleCloudPlatform/github-actions/setup-gcloud@master with: export_default_credentials: true ``` ^ this is how i am using it ``` ?[34m|?[0m Error: Cannot find module '/github/workspace/\actions\GoogleCloudPlatform-github-actions-setup-gcloud@master\setup-gcloud\dist\index.js' ?[34m|?[0m ?[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)?[39m ?[34m|?[0m ?[90m at Function.Module._load (internal/modules/cjs/loader.js:864:27)?[39m ?[34m|?[0m ?[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)?[39m ?[34m|?[0m ?[90m at internal/main/run_main_module.js:18:47?[39m { ?[34m|?[0m code: ?[32m'MODULE_NOT_FOUND'?[39m, ?[34m|?[0m requireStack: [] ?[34m|?[0m } ?[34m[End to End/End to End] ?[0m ❌ Failure - GoogleCloudPlatform/github-actions/setup-gcloud@master Error: exit with `FAILURE`: 1 ``` and this is what it ends up saying my command is: act -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -j gcloudaction
kerem 2026-03-01 21:40:47 +03:00
Author
Owner

@Tylertron1998 commented on GitHub (May 14, 2020):

this seems to be a duplicate of #145

<!-- gh-comment-id:628931478 --> @Tylertron1998 commented on GitHub (May 14, 2020): this seems to be a duplicate of #145
Author
Owner

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

Good catch @Tylertron1998 ... thank you 👏

<!-- gh-comment-id:628934075 --> @cplee commented on GitHub (May 14, 2020): Good catch @Tylertron1998 ... thank you 👏
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#165
No description provided.