szenius / set-timezone

GitHub action to set timezone in your locale, works with Linux, Windows, MacOS
MIT License
102 stars 21 forks source link

Error: spawn sudo ENOENT #15

Open sandervspl opened 1 year ago

sandervspl commented 1 year ago

Getting this error in my workflow

This is the action's setup

runs-on: ubuntu-latest
container:
  image: node:18
steps:
  - name: Set timezone
  uses: szenius/set-timezone@v1.2
  with:
    timezoneLinux: 'Europe/Amsterdam'

/usr/bin/docker exec  9e5ecfe8eec4dde51ee9ed4172859f4252023dbe70882e[6](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:7)d[7](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:8)d5b84d62fcc28b2 sh -c "cat /etc/*release | grep ^ID"
node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

Error: spawn sudo ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:2[8](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:9)5:1[9](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:10))
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn sudo',
  path: 'sudo',
  spawnargs: [ 'timedatectl', 'set-timezone', 'Europe/Amsterdam' ]```
rebla commented 11 months ago

I'm having the same issue

beef9999 commented 1 month ago

Having the same issue.

I'm using almalinux:8 image, which is a derivative of RHEL.