2 Commits
Author SHA1 Message Date
Jeffery 676cd825bf fix(token 注入): action.yml 以 env 傳入 gitea.token 供容器讀取
docker-actions/template: CI / BUILD (pull_request) Successful in 4s
2026-07-17 12:56:45 +08:00
admin 9d68556ebf Merge pull request 'feat: 實作 Clean Old Release action' (#1) from feature/clean-old-release into develop
docker-actions/template: CI / BUILD (pull_request) Successful in 25s
Reviewed-on: #1
2026-07-17 00:57:47 +00:00
+4
View File
@@ -14,3 +14,7 @@ runs:
using: docker
image: dockerfile
entrypoint: /action/entrypoint.sh
env:
# 將 Gitea 自動提供的 token 注入容器環境,供 index.js 讀取 GITHUB_TOKENGITEA_TOKEN 用;
# docker action 不會自動把 token 帶進容器,須在此明確以 ${{ gitea.token }} 賦值傳入
GITHUB_TOKEN: ${{ gitea.token }}