Ooker
Ooker3w ago

error: deno task couldn't find deno.json(c) on GitHub Action

This GitHub workflow:
name: Chạy định kỳ
on:
workflow_dispatch:
schedule:
# - cron: "0 0 * * 0"
- cron: "*/5 * * * *"
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
- name: deno task start
run: deno task start
name: Chạy định kỳ
on:
workflow_dispatch:
schedule:
# - cron: "0 0 * * 0"
- cron: "*/5 * * * *"
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
- name: deno task start
run: deno task start
yields this error:
error: deno task couldn't find deno.json(c). See https://docs.deno.com/go/config
Error: Process completed with exit code 1.
error: deno task couldn't find deno.json(c). See https://docs.deno.com/go/config
Error: Process completed with exit code 1.
Of course there is one. It works on local. Do you have any idea? Here is the repo: https://github.com/QuaCau-TheSphere/meetup-ticketbox-to-google-calendar/actions/runs/12230615347/job/34112217356
GitHub
Chạy định kỳ · QuaCau-TheSphere/meetup-ticketbox-to-google-calendar...
Contribute to QuaCau-TheSphere/meetup-ticketbox-to-google-calendar development by creating an account on GitHub.
1 Reply
marvinh.
marvinh.3w ago
Looks like you forgot to clone the repository in that action file. To clone your repository inside the action runner you must use the actions/checkout official GH action https://github.com/actions/checkout somwhere in your workflow

Did you find this page helpful?