canonical_id: gitea_put_file display_name: Gitea Put File (Create/Update) description: >- Gitea PUT /repos/{owner}/{repo}/contents/{filepath} 建立或更新檔案並產生 commit。 _path 帶完整路徑(例 /Leo/arcrun-rag-bundles/contents/manifest.json,filepath 各段需 URL-encode)。 body 帶 {message, content(base64), branch, sha(更新既有檔案時必填,取自前一次 GET 的 content.sha; 新建檔案時不帶)}。auth: gitea static_key,header Authorization: token (D36:定義只留 {{credential.*}} 名字,真身由 credential 中心於執行前回填,非本 recipe 職責)。 endpoint: https://git.uncle6.me/api/v1/repos{{_path}} method: PUT auth_service: gitea