We have configured a github runner using ubuntu-latest.
When we execute ares -V in our runner, we get the following error:
/usr/bin/env: ‘node\r’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
When we remove the ares -V call the error disappears.
We believe it has something to do with https://github.com/webos-tools/cli/blob/main/bin/ares.js, even though the line breaks seem in order.
Does someone know what could be wrong here?
We tried to fix it by calling find $(yarn global bin) -type f -exec sed -i 's/\r$//' {} + first, but that didn't help.
This is a snippet from our .github/workflows/build-webos.yml file:
jobs:
build_webos:
name: Build WebOS App
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
repository: "Something/something"
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
ref: ${{ inputs.reference }}
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install WebOS CLI
run: |
yarn global add @webos-tools/cli@^3.2.1
ares -V
We have configured a github runner using
ubuntu-latest.When we execute
ares -Vin our runner, we get the following error:When we remove the
ares -Vcall the error disappears.We believe it has something to do with https://github.com/webos-tools/cli/blob/main/bin/ares.js, even though the line breaks seem in order.
Does someone know what could be wrong here?
We tried to fix it by calling
find $(yarn global bin) -type f -exec sed -i 's/\r$//' {} +first, but that didn't help.This is a snippet from our
.github/workflows/build-webos.ymlfile: