try using workspaces
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
workspace:
|
||||
base: /woodpecker
|
||||
path: src
|
||||
|
||||
when:
|
||||
- event: cron
|
||||
branch: main
|
||||
@@ -6,11 +10,6 @@ when:
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: deps
|
||||
image: node:22
|
||||
commands:
|
||||
- npm ci
|
||||
|
||||
- name: lint
|
||||
image: node:22
|
||||
when:
|
||||
@@ -18,10 +17,11 @@ steps:
|
||||
- pull_request
|
||||
- push
|
||||
commands:
|
||||
- npm ci
|
||||
- npm run lint
|
||||
|
||||
- name: generate-dungeon
|
||||
image: node:22
|
||||
image: ghcr.io/puppeteer/puppeteer:latest
|
||||
when:
|
||||
event:
|
||||
- cron
|
||||
@@ -31,6 +31,7 @@ steps:
|
||||
OLLAMA_API_KEY:
|
||||
from_secret: OLLAMA_API_KEY
|
||||
commands:
|
||||
- npm ci
|
||||
- npm start
|
||||
|
||||
- name: upload-to-gitea-release
|
||||
|
||||
Reference in New Issue
Block a user