install-cli-action
install-cli-action copied to clipboard
No such file or directory in windows2019
I run jobs on window-2019 I think install-cli.sh path is not valid in windows can you check this?
jobs:
build:
runs-on: windows-2019
Hey @minwoo-payhere! 👋🏻 Currently this action is only available for Linux and macOS runners. Windows is not supported yet and is not currently on our roadmap. Therefore, we can not confirm if or when this will be added. If you have the time and know how feel free to make a PR with the additional functionality to make the action compatible with Windows runners. 😄
Hey @minwoo-payhere! 👋🏻 Currently this action is only available for Linux and macOS runners. Windows is not supported yet and is not currently on our roadmap. Therefore, we can not confirm if or when this will be added. If you have the time and know how feel free to make a PR with the additional functionality to make the action compatible with Windows runners. 😄
Hello, I had the same issue and submitted a PR.
We're currently using this for Windows. Hope it helps!
- name: Install 1Password CLI (Windows)
shell: powershell
# Install 1Password CLI > Windows > Manual: https://developer.1password.com/docs/cli/get-started/
# Adding a system path: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
run: |
Invoke-WebRequest "https://app-updates.agilebits.com/check/1/0/CLI2/en/2.0.0/N" -OutFile op.json
$opVersion = Get-Content -Raw -Path op.json | ConvertFrom-Json | select -ExpandProperty version
$installDir = Join-Path -Path $pwd -ChildPath 'op'
Invoke-WebRequest -Uri "https://cache.agilebits.com/dist/1P/op2/pkg/v$($opVersion)/op_windows_amd64_v$($opVersion).zip" -OutFile op.zip
Expand-Archive -Path op.zip -DestinationPath $installDir -Force
"$installDir" | Out-File -FilePath $env:GITHUB_PATH -Append
if: matrix.os == 'windows-latest'
Hi, I'm getting the same issue with my self-hosted Linux runner. The job is running inside the Ubuntu container. But workflow stops with an error coder 127. Error -
/__w/_temp/e6d45f6e-9a69-4c8a-a5f7-2db46370aad3.sh: line 1: /home/runner/actions-runner/_work/_actions/1password/install-cli-action/v1/install-cli.sh: No such file or directory
Path was mounted inside the container as volume -
-v "/home/runner/actions-runner/_work/_actions":"/__w/_actions"
Can you please let me know if this is the problem with my setup or I'm hitting a bug? Thx heaps!