"Manifest: appsscript.json invalid. `create` or `clone` a project first." error

406 views
Skip to first unread message

Emily Seville

unread,
Oct 9, 2021, 10:13:51 AM10/9/21
to Google Apps Script Community
Hello! I want to create continuous delivery with GitHub Actions for test Apps Script project. Now the following Bash script is intended to install clasp and deploy project:

npm install -g @google/clasp
clasp login --creds <(echo "${{ secrets.CREDS }}")
clasp deploy --description "Sample deploy-test."


The problem is it fails with:

Manifest: /home/emilyseville7cfg/Documents/self-development/console-utils/google-script/deploy-test/appsscript.json invalid. `create` or `clone` a project first.

What's the best way to solve this problem? Is it the best option change rootDir via jq for example each time GitHub Actions are run?

Emily Seville

unread,
Oct 10, 2021, 8:34:16 AM10/10/21
to Google Apps Script Community
This problem is solved via:

echo {\"scriptId\":\"1P48RlfJ5ZqamWuGFr50IbeXCafDhWFgOzNAJSmaLuTDZ0yzuLvo0_SZ1\",\"rootDir\":\"$PWD\",\"projectId\":\"deploy-test-328506\"}" > .clasp.json

command. If there is any better decision please post here.
Reply all
Reply to author
Forward
0 new messages