working-directory not working

my config looks like this:

build_deploy_firmware:
container: nervesproject/nerves_system_br:latest
runs-on: ubuntu-18.04
needs: [run_tests]
steps:
- name: Install Elixir
run: |
wget https://repo.hex.pm/builds/elixir/v1.9.0-otp-22.zip
unzip -d /usr/local/elixir v1.9.0-otp-22.zip
- name: install mix archives
run: |
export PATH=/usr/local/elixir/bin:$PATH
mix local.hex --force
mix local.rebar --force
mix archive.install hex nerves_bootstrap "~> 1.6" --force
- name: build firmware
working-directory: ./farmbot_os
env:
MIX_ENV: prod
MIX_TARGET: rpi3
run: |
export PATH=/usr/local/elixir/bin:$PATH
mix deps.get
mix compile --force
mix firmware
- name: deploy firmware to NervesHub
working-directory: ./farmbot_os
env:
MIX_ENV: prod
MIX_TARGET: rpi3
NERVES_HUB_KEY: ${{ secrets.NERVES_HUB_KEY }}
NERVES_HUB_CERT: ${{ secrets.NERVES_HUB_CERT }}
NERVES_HUB_FW_PRIVATE_KEY: ${{ secrets.NERVES_HUB_FW_PRIVATE_KEY }}
NERVES_HUB_FW_PUBLIC_KEY: ${{ secrets.NERVES_HUB_FW_PUBLIC_KEY }}
run: |
export PATH=/usr/local/elixir/bin:$PATH
mix nerves_hub.firmware publish --deploy rpi3-prod-next --tty 3600 _build/rpi3/rpi3_prod/nerves/images/farmbot.fw

and i get this error:

OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "chdir to cwd (\"/__w/farmbot_os/farmbot_os/./farmbot_os\") set in config.json failed: no such file or directory": unknown
1 Like

Bump. Anyone have any ideas?

Sorry, I’m not entirely sure what you’re trying to do?  I don’t see anything that’s creating a subdirectory called farmbot_os.  You don’t have a checkout step, so if there was a subdirectory inside your repository, that wouldn’t exist.

Do you need to add:

- uses: actions/checkout@v1

as your first step?