Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d04f4dd2bb | |||
| f5cf5950bd | |||
| eae73092ad | |||
| 69624a542e | |||
| 8aa273b8bd | |||
| 00458d4eb2 | |||
| 894ece033b | |||
| fe2a513fbb | |||
| 2193bdd4d6 | |||
| af51ffacee | |||
| d9c55ca347 |
+5
-5
@@ -1,9 +1,9 @@
|
|||||||
FROM node:20-slim
|
FROM alpine
|
||||||
|
|
||||||
# force rebuild to ensure git is installed
|
RUN apk add --no-cache bash nodejs npm git \
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
&& node --version \
|
||||||
git \
|
&& npm --version \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& git --version
|
||||||
|
|
||||||
WORKDIR /action
|
WORKDIR /action
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
每個階段都會加上明確的 log,並確保即使部分功能未完成也能降級執行、不會中斷 pipeline。
|
每個階段都會加上明確的 log,並確保即使部分功能未完成也能降級執行、不會中斷 pipeline。
|
||||||
|
|
||||||
每次執行後請貼 log,我會協助 debug。
|
每次執行後請貼 log,我會協助 debug。
|
||||||
+3
-1
@@ -11,7 +11,9 @@ function git(args, cwd) {
|
|||||||
|
|
||||||
export async function commitAndPush(workspace) {
|
export async function commitAndPush(workspace) {
|
||||||
const repoDir = path.join(workspace, GITEA_REPOSITORY);
|
const repoDir = path.join(workspace, GITEA_REPOSITORY);
|
||||||
const remoteUrl = GITEA_SERVER_URL.replace(/\/$/, '').replace('https://', `https://${GITEA_TOKEN}@`).replace('http://', `http://${GITEA_TOKEN}@`) + `/${GITEA_REPOSITORY}.git`;
|
const remoteUrl = GITEA_SERVER_URL.replace(/\/$/, '')
|
||||||
|
.replace('https://', `https://${GITEA_TOKEN}@`)
|
||||||
|
.replace('http://', `http://${GITEA_TOKEN}@`) + `/${GITEA_REPOSITORY}.git`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
git(['config', 'user.email', 'ai-review[bot]@gitea'], repoDir);
|
git(['config', 'user.email', 'ai-review[bot]@gitea'], repoDir);
|
||||||
|
|||||||
Reference in New Issue
Block a user