oxr463 / setup-cordova

Setup your GitHub Actions workflow with Apache Cordova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Current working directory is not a Cordova-based project

opened this issue · comments

While trying to setup this Action I got the following error:

... large docker command ...
5: Current working directory is not a Cordova-based project.

This is the yml file

name: Build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Build APK
        uses: oxr463/setup-cordova@0.0.2
        with:
          exec: cordova platform add android && \
                cordova build --no-telemetry && \
                cp "$(find . -name '*.apk')" .

and my file structure looks like this

.
├── config.xml
├── hooks
│   └── cordova.js
├── package.json
├── package-lock.json
└── src
    ├── App.js
    ├── index.css
    ├── index.html
    └── index.js

Which was generated by the Cordova CLI utility.

Oh, and I do have a www/ folder inside, because that seems to be the problem in the first place.

It doesn't look like you're checking out the code:

    steps:
    - uses: actions/checkout@v1

This needs to be done first.

OH, right! I forgot about that. 😄 Sorry.

Yeah, just tested this out and it turns out that was it, so yeah, thanks.

No problem. Please let me know if anything else comes up.