docs(ci): pin Gitea sources and reproducible verification plan
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
* text=auto eol=lf
|
||||
tests/fixtures/ci-sources/sources/** -text -whitespace
|
||||
# Official fixture captures keep their original bytes and vendor formatting.
|
||||
tests/fixtures/official-model-registry/sources/** -text -whitespace
|
||||
docs/embedded-browser-development-evidence/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# CI 官方来源与执行范围
|
||||
|
||||
2026-11-07,承接 [M2 CI 计划](M2-CI-PLAN.md)。GitAtlas 公开只读 API 实返 Gitea **1.26.2**、当前仓库 `has_actions=true`;运行/runner 接口匿名均 HTTP 401,没有据此确认可用 runner。仓库 API 当前 `private=false` 作为观察保留,未修改其配置。
|
||||
|
||||
采用同一 1.26 文档系列(页面当前标注 1.26.4)的官方原文,逐份响应/原字节/SHA 保存于 `tests/fixtures/ci-sources/SOURCE.json`。它们解释工作流契约,不是本仓库远端执行回执:
|
||||
|
||||
- [Quick Start](https://docs.gitea.com/1.26/usage/actions/quickstart/):工作流位于 `.gitea/workflows/`,实例/仓库 Actions 与已注册 runner 均为运行前置条件。
|
||||
- [Act Runner](https://docs.gitea.com/1.26/usage/actions/act-runner/):`runs-on` 匹配标签;Windows 使用明确的 `:host` 标签。默认容器的 Node 16 不满足本产品 Node 24 的构建身份。
|
||||
- [与 GitHub Actions 的差异](https://docs.gitea.com/1.26/usage/actions/comparison/):支持完整 action URL;不能依赖尚不支持的 workflow `timeout-minutes`/复杂 `runs-on` 等语法来判定执行结果。
|
||||
|
||||
原无尾斜杠入口的 308、旧 runner 路径的 301、所有匿名 401 及本次公开 API 原响应保留在 `.qa/m2-ci-2026-11-07/`,未跟随到带凭据的地址。无账户 token、真实模型 Key 或模型请求。
|
||||
|
||||
官方模型回归复用 I15 注册表、I14 请求版本/头和 I09/I11 原生缓存/状态的固定原件;新 CI 检查将其来源、规格版本、字段和弃用变化关联到实际回归输入。夹具及受控本机 HTTP 结果不代表官方服务、代理或真实模型自主交付已通过。
|
||||
|
||||
可移植契约检查与 Windows 全源码/实际桌面/隔离安装检查分别报告,环境缺失必须失败,不以跳过改绿。M3 真实跨版/schema2 迁移及新处理器结果后的回退仍是独立验收,不在 CI 文档中冒称正式安装完成。
|
||||
@@ -0,0 +1,26 @@
|
||||
# M2 第六批:CI 与官方契约回归闭环
|
||||
|
||||
2026-11-07,基线 `470d694831c315c034e3f36891e4f3faf94cbe0f`,分支 `feat/task-agreement-1.25`,干净工作树。承接 I09/I11 已封存交付,不重做上一批。完成 I27 可重复的源码/契约/构建/安装检查入口与 I28 官方来源、版本差异及弃用的回归关联;随后 M3 单独冻结统一发行。
|
||||
|
||||
1. [complete] 固定470d6948基线/tree/锁文件/Node身份,planning catchup退出0。GitAtlas实际1.26.2且Actions启用,runner/runs匿名401,未确认执行器;1.26官方三篇HTTP200原件与重定向/401保存,见[来源](CI-SOURCES.md)。当前外部Python3.11.15缺pytest,缺环境失败原件保留。
|
||||
2. [in_progress] 实现锁定依赖/前置环境/源码身份检查和唯一输出目录,接入官方注册表原件核对及契约、版本、弃用回归;缺环境和实际失败必须非零退出。
|
||||
3. [pending] 建立 GitAtlas 工作流和可复用本地入口,区分可移植契约与 Windows 桌面/安装验证;检查源码包是否包含 CI 配置并用真实自有 Git ZIP 验证。
|
||||
4. [pending] 在独立干净源码与实际新装依赖环境执行,记录 Node/Python/Playwright/Electron 身份、原命令/失败/构建及测试结果;不以原 node_modules junction 冒充干净安装,不将本地结果称远端执行。
|
||||
5. [pending] 分阶段回顾与限定提交,核对最终输入、官方原字节、进程归属及封存记录;普通增量推送并逐 SHA 核远端。外部 runner 配置缺项需在完成具体实现和本地验证后准确列出。
|
||||
|
||||
新证据只写 `.qa/m2-ci-2026-11-07/`,原 I10/I13/I15/I14/I09-I11 封存根只读。本批不委派、不读真实模型 Key、不请求真实模型、不操作正式配置/数据/安装/重启,不续旧实验或用户工程,不安装持久 runner。公开 GitAtlas API/官方资料仅作只读调查,失败与无法确认状态均保留。
|
||||
|
||||
默认 unrestricted/passthrough/preserve 与持久 ask/auto/full 保持;CI 不恢复预算/上下文/输出/历史限制或逐步审批。W/AD/AE/AG 网络/unknown、重复读取普遍收益、R/W v2 真实剔除边界及 Purge 收益 unknown 不变。官方夹具只证明确定性契约,本批无真实供应商验证。M3 必须验证声明的 schema2 迁移增量及新处理器实际产生结果后的回退,不能删新账本或直接移除逐表全等守卫。
|
||||
|
||||
## 调查与原失败
|
||||
|
||||
- 接续读取组合输出过大导致工具截断,随后限定相关段落;未改产品或旧证据。
|
||||
- PowerShell 未引用的 `HEAD^{tree}` 被解释为脚本块,Git 调查失败;改用引号固定 revision 参数,未产生提交或数据改动。
|
||||
- 只读调查误猜 `visible-browser.test` / `request-contract.test` / `browser-launch` 和 PowerShell 不展开的 rg 路径通配符;改用实际文件列表,不记作产品失败。
|
||||
- GitAtlas 公开 API 实测 Gitea 1.26.2、仓库 Actions 启用;runner 和运行 API 匿名均 401,执行环境仍未知。当前仓库 API 的 `private=false` 作为观察保存,不更改用户仓库配置。
|
||||
- Gitea 无尾斜杠/旧 runner 入口返回 308/301,原件保持;另取对应 1.26 官方三篇 HTTP 200 正文,不能将重定向当原正文通过。
|
||||
- 外部Python3.11.15当前缺pytest,`import pytest`实收ModuleNotFoundError;计划新建独立QA环境并按带哈希的锁文件安装,不污染原解释器环境。
|
||||
- 来源准备首轮把Colorama实际`py2.py3`通用wheel误判为缺wheel;未处理的并行失败使其余部分响应未落盘。第二轮误假设所有响应都存在,实收ENOENT。第三轮顺序复用已存原件并仅补缺失PyPI元数据,7个精确wheel及SHA已固定;两原脚本/失败保持,不改成通过。
|
||||
- Checkout原metadata HTTPS首次fetch失败、第二次45秒超时、第三次公开Git clone连接被重置(128);第四次Gitea官方actions镜像按同一v4.2.2 commit取得HTTP200原metadata。四记录分开,不能称GitHub网络已恢复;工作流采用同commit镜像URL。
|
||||
- YAML依赖准备器首相对import多退一级,实收ERR_MODULE_NOT_FOUND;原脚本保持,第二轮正确import成功,只新增yaml和根依赖声明两个lock条目。
|
||||
- 官方快照首准备器把已有受控同级fixture引用误判为逃逸;原helper保存,改为整个固定`tests/fixtures`范围,仍逐原字节SHA核对,未改原SOURCE.json或来源正文。
|
||||
@@ -1,5 +1,9 @@
|
||||
# 汇总发现
|
||||
|
||||
I27/I28公开只读调查:GitAtlas实返Gitea1.26.2、仓库has_actions=true;当前API公开private=false,不擅自修改可见性。Actions运行与runner接口匿名均401,不能据此断言有可用执行器。已保存1.26版quickstart/act-runner/comparison三份HTTP200原HTML及SHA;最新入口的308/301亦保持,不当正文成功。本地固定Node24.22.1已核,planning catchup退出0无补遗。
|
||||
|
||||
I27/I28初核:现有构建依赖Node24与dist-server,Python测试需独立pytest8.4.2,Playwright/Electron版本锁在package-lock;没有既有.gitea/.github工作流,GitAtlas Actions版本/启用/runner未知。源码包按目录白名单导出,暂不含.gitea,需要实际Git ZIP核对。历史manual/restricted fixture保留,不能为CI删除旧断言或以原依赖junction宣称干净安装。
|
||||
|
||||
I09/I11封存收口:5126原件、2008555583字节、5依赖junction不递归;原四M2根16171原件/manifest只读一致,22源码Git字节一致,实际候选进程/记录非正式端口监听0。源码/隔离验收完成与正式部署/真实缓存/Purge收益分别记录;下一CI后M3必须验证迁移增量与新结果回退。封存后误用Tianshu文档标题的失败patch只记录在新close/当前进展,不回写原证据根。
|
||||
|
||||
I09/I11最终Electron通过且实际复看1280新池编辑与390任务上下文:现有Orven布局/中文/长SHA/下拉与真实保存保留,输出“本次不限/不附加上限/由上游处理”与冻结状态分别呈现。网页绿/紫状态图亦复看,三配色和窄屏保持一致。两个端各5本机POST、3成功/2原400,6账本含原unknown;完成工具1、不重放,原metadata/cipher/snapshot/history全部exact。本批不证明真实缓存命中/上游普遍兼容。
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# 统一执行进度
|
||||
|
||||
I27/I28阶段1来源固定:7份CI官方正文/action元数据、4 action逐commit的ls-remote、7个PyPI通用wheel精确SHA完成。Python准备器首Colorama标签与第二轮误认为并行响应已齐的失败保留,第三轮只补缺文件,未污染外部Python。Mnemo指定v1 README SHA一致,已写本地只读字段/接入依赖反馈,当前不接入/请求/回复源线程或混入CI提交。下一实现统一入口、官方规格差异与缺环境非零退出。
|
||||
|
||||
I27/I28调查2完成:基线tree cf362e31固定,GitAtlas匿名版本/仓库API成功,1.26.2且Actions启用,runner/runs均401;不提取账户token或安装runner。取得对应版本三官方正文,原重定向/失败完整记录。几次调查误猜测试/浏览器模块名和PowerShell通配符路径已保留为读取错误,后续只用rg实际文件列表;产品未修改。下一固定来源并实现可重复检查入口与官方更新回归。
|
||||
|
||||
I27/I28阶段1开始:470d6948干净,已读AGENTS/采用计划/1.25计划/路线和现有构建、源码打包、Python/官方注册表检查;规划catchup及固定Node身份核对。新证据根独立创建,尚未请求真实模型/Key/正式服务或GitAtlas API。接续输出过大截断、PowerShell未引用tree revision的只读调查错误已记入新计划;不重做I09/I11。
|
||||
|
||||
I09/I11阶段1–5完成:71f18055/9e1feeeb/ee97aaae及验收1a897576已普通增量推送、远端逐SHA一致;5126原件/880输入/29编译/20图与22Git输入保持,原四根16171项只读exact。当前只提交回执和完成接续再普通推送核对;下一I27/I28 CI,然后M3迁移增量/新结果回退。不部署/重启/模型/Key/旧实验或原封存写入,历史unknown保持。
|
||||
|
||||
I09/I11 UI源码ee97aaae已限定提交,22变更冻结输入/Git原字节复核通过;5126份2008555583字节封存,MANIFEST c887364e54fe3f68e5f432155db87517fb8413966f5786156bedceddadbf2217,旧四根16171项只读exact,自有进程及记录非正式端口监听0。当前验收/机器记录/接续入口提交及普通GitAtlas增量推送收尾;新封存根只读,后续写独立close根。一次接续文档patch误用Tianshu标题整体未应用,按实际标题重做,不追加原封存。
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Agent Workbench:核心代理能力研究与产品计划
|
||||
|
||||
M2第六批I27/I28开始:基线470d6948干净/远端一致,见[CI计划](docs/M2-CI-PLAN.md)。先查GitAtlas实际执行能力,再建立锁定依赖、官方来源/契约、源码身份及构建/安装的可重复入口,独立干净安装验收;不能以缺环境跳过改绿或把本地结果当远端通过。新证据根`.qa/m2-ci-2026-11-07/`,原各批封存只读,不委派/正式操作/真实模型/Key或续旧工程。随后M3统一发行,历史unknown保持。
|
||||
|
||||
M2 I09/I11阶段1–4完成:来源71f18055/核心9e1feeeb/界面ee97aaae,见[验收](docs/QA-M2-NATIVE-CACHE-STATE.md)。880输入/29编译/74runtime、两端各8组/10图、原metadata/cipher/snapshot/history exact,5126原件已封存;source-5为16/16,首127/129与两文件26/26按SHA分别保留。阶段5已封存/回顾并普通增量推送,1a897576远端逐SHA一致,见[回执](docs/gitatlas-m2-native-cache-state-push.json);完成接续最后另提交核对。下一I27/I28 CI,后续M3实际schema2迁移增量及新处理器结果后回退,不删除新账本或移除原保持守卫。正式/真实Key/模型/旧实验/历史unknown不动。
|
||||
|
||||
M2第五批I09/I11已从bdfeb29c干净基线开始,见[原生缓存与状态计划](docs/M2-NATIVE-CACHE-STATE-PLAN.md):保留Messages块/工具注解及原生历史,配置会话/Task/Run亲和,状态按实际协议/地址/型号/凭据/版本身份核对;旧历史不改写,亲和/同指纹不当作缓存命中。随后CI及M3真实迁移增量/结果后回退。无真实模型/Key/正式写入/委派,历史unknown保持。
|
||||
|
||||
+95
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"checkedAt": "2026-11-07",
|
||||
"observedInstance": {
|
||||
"version": "1.26.2",
|
||||
"actionsEnabled": true,
|
||||
"runnerAvailability": "unknown"
|
||||
},
|
||||
"sources": [
|
||||
{
|
||||
"id": "action-checkout",
|
||||
"url": "https://gitea.com/actions/checkout/raw/commit/11bd71901bbe5b1630ceea73d27597364c9af683/action.yml",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/action-checkout.yml",
|
||||
"sha256": "5349b6eea0a1797a9a993c48db9d95b33d27ee1b6227ceced0c9cbf8e655c939",
|
||||
"bytes": 4593,
|
||||
"representation": "original-action-metadata-from-gitea-actions-mirror",
|
||||
"commit": "11bd71901bbe5b1630ceea73d27597364c9af683",
|
||||
"repository": "https://github.com/actions/checkout",
|
||||
"scope": "same immutable commit verified by public GitHub v4.2.2 ref; first raw-fetch/clone failures remain"
|
||||
},
|
||||
{
|
||||
"id": "action-setup-node",
|
||||
"url": "https://raw.githubusercontent.com/actions/setup-node/49933ea5288caeca8642d1e84afbd3f7d6820020/action.yml",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/action-setup-node.yml",
|
||||
"sha256": "8aee59063ebc272d850507febb30930de2684be1b1240cf5f3dff13179fcff0b",
|
||||
"bytes": 2614,
|
||||
"representation": "original-action-metadata",
|
||||
"commit": "49933ea5288caeca8642d1e84afbd3f7d6820020",
|
||||
"repository": "https://github.com/actions/setup-node",
|
||||
"scope": "pinned action metadata; remote execution still unverified"
|
||||
},
|
||||
{
|
||||
"id": "action-setup-python",
|
||||
"url": "https://raw.githubusercontent.com/actions/setup-python/a26af69be951a213d495a4c3e4e4022e16d87065/action.yml",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/action-setup-python.yml",
|
||||
"sha256": "0acca40eee6f548ea8269ece66fd625fe9deb1f61f31f0b58562068fc083eb37",
|
||||
"bytes": 2364,
|
||||
"representation": "original-action-metadata",
|
||||
"commit": "a26af69be951a213d495a4c3e4e4022e16d87065",
|
||||
"repository": "https://github.com/actions/setup-python",
|
||||
"scope": "pinned action metadata; remote execution still unverified"
|
||||
},
|
||||
{
|
||||
"id": "action-upload-artifact",
|
||||
"url": "https://gitea.com/actions/upload-artifact/raw/commit/ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5/action.yml",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/action-upload-artifact.yml",
|
||||
"sha256": "1516e0d1018602f83eba56c8394f60729e8163f5fde2f38efbb1019e8bdddfb3",
|
||||
"bytes": 1150,
|
||||
"representation": "original-action-metadata",
|
||||
"commit": "ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5",
|
||||
"repository": "https://gitea.com/actions/upload-artifact",
|
||||
"scope": "pinned action metadata; remote execution still unverified"
|
||||
},
|
||||
{
|
||||
"id": "gitea-126-comparison",
|
||||
"url": "https://docs.gitea.com/1.26/usage/actions/comparison/",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/gitea-126-comparison.body",
|
||||
"sha256": "cffdd051921168d1ed8990bd948ac8abadbe205ded4fbf75a739c0dae50a6c50",
|
||||
"bytes": 87919,
|
||||
"representation": "original-received-html",
|
||||
"versionSeries": "1.26",
|
||||
"documentationPatch": "1.26.4",
|
||||
"scope": "workflow and runner contract, not a remote run receipt"
|
||||
},
|
||||
{
|
||||
"id": "gitea-126-quickstart",
|
||||
"url": "https://docs.gitea.com/1.26/usage/actions/quickstart/",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/gitea-126-quickstart.body",
|
||||
"sha256": "0e43166b786de4eedf54839231a312f8d3933ed7ba350712d5a1f54c01a1fb59",
|
||||
"bytes": 73731,
|
||||
"representation": "original-received-html",
|
||||
"versionSeries": "1.26",
|
||||
"documentationPatch": "1.26.4",
|
||||
"scope": "workflow and runner contract, not a remote run receipt"
|
||||
},
|
||||
{
|
||||
"id": "gitea-126-runner",
|
||||
"url": "https://docs.gitea.com/1.26/usage/actions/act-runner/",
|
||||
"checkedAt": "2026-11-07",
|
||||
"file": "sources/gitea-126-runner.body",
|
||||
"sha256": "9b1d81d3648a5572817c91e61c3a9c6c526cdb05b8150d21a9de4a6a6baa9c1d",
|
||||
"bytes": 158980,
|
||||
"representation": "original-received-html",
|
||||
"versionSeries": "1.26",
|
||||
"documentationPatch": "1.26.4",
|
||||
"scope": "workflow and runner contract, not a remote run receipt"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
name: 'Checkout'
|
||||
description: 'Checkout a Git repository at a particular version'
|
||||
inputs:
|
||||
repository:
|
||||
description: 'Repository name with owner. For example, actions/checkout'
|
||||
default: ${{ github.repository }}
|
||||
ref:
|
||||
description: >
|
||||
The branch, tag or SHA to checkout. When checking out the repository that
|
||||
triggered a workflow, this defaults to the reference or SHA for that
|
||||
event. Otherwise, uses the default branch.
|
||||
token:
|
||||
description: >
|
||||
Personal access token (PAT) used to fetch the repository. The PAT is configured
|
||||
with the local git config, which enables your scripts to run authenticated git
|
||||
commands. The post-job step removes the PAT.
|
||||
|
||||
|
||||
We recommend using a service account with the least permissions necessary.
|
||||
Also when generating a new PAT, select the least scopes necessary.
|
||||
|
||||
|
||||
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
|
||||
default: ${{ github.token }}
|
||||
ssh-key:
|
||||
description: >
|
||||
SSH key used to fetch the repository. The SSH key is configured with the local
|
||||
git config, which enables your scripts to run authenticated git commands.
|
||||
The post-job step removes the SSH key.
|
||||
|
||||
|
||||
We recommend using a service account with the least permissions necessary.
|
||||
|
||||
|
||||
[Learn more about creating and using
|
||||
encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
|
||||
ssh-known-hosts:
|
||||
description: >
|
||||
Known hosts in addition to the user and global host key database. The public
|
||||
SSH keys for a host may be obtained using the utility `ssh-keyscan`. For example,
|
||||
`ssh-keyscan github.com`. The public key for github.com is always implicitly added.
|
||||
ssh-strict:
|
||||
description: >
|
||||
Whether to perform strict host key checking. When true, adds the options `StrictHostKeyChecking=yes`
|
||||
and `CheckHostIP=no` to the SSH command line. Use the input `ssh-known-hosts` to
|
||||
configure additional hosts.
|
||||
default: true
|
||||
ssh-user:
|
||||
description: >
|
||||
The user to use when connecting to the remote SSH host. By default 'git' is used.
|
||||
default: git
|
||||
persist-credentials:
|
||||
description: 'Whether to configure the token or SSH key with the local git config'
|
||||
default: true
|
||||
path:
|
||||
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
||||
clean:
|
||||
description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
|
||||
default: true
|
||||
filter:
|
||||
description: >
|
||||
Partially clone against a given filter.
|
||||
Overrides sparse-checkout if set.
|
||||
default: null
|
||||
sparse-checkout:
|
||||
description: >
|
||||
Do a sparse checkout on given patterns.
|
||||
Each pattern should be separated with new lines.
|
||||
default: null
|
||||
sparse-checkout-cone-mode:
|
||||
description: >
|
||||
Specifies whether to use cone-mode when doing a sparse checkout.
|
||||
default: true
|
||||
fetch-depth:
|
||||
description: 'Number of commits to fetch. 0 indicates all history for all branches and tags.'
|
||||
default: 1
|
||||
fetch-tags:
|
||||
description: 'Whether to fetch tags, even if fetch-depth > 0.'
|
||||
default: false
|
||||
show-progress:
|
||||
description: 'Whether to show progress status output when fetching.'
|
||||
default: true
|
||||
lfs:
|
||||
description: 'Whether to download Git-LFS files'
|
||||
default: false
|
||||
submodules:
|
||||
description: >
|
||||
Whether to checkout submodules: `true` to checkout submodules or `recursive` to
|
||||
recursively checkout submodules.
|
||||
|
||||
|
||||
When the `ssh-key` input is not provided, SSH URLs beginning with `git@github.com:` are
|
||||
converted to HTTPS.
|
||||
default: false
|
||||
set-safe-directory:
|
||||
description: Add repository path as safe.directory for Git global config by running `git config --global --add safe.directory <path>`
|
||||
default: true
|
||||
github-server-url:
|
||||
description: The base URL for the GitHub instance that you are trying to clone from, will use environment defaults to fetch from the same instance that the workflow is running from unless specified. Example URLs are https://github.com or https://my-ghes-server.example.com
|
||||
required: false
|
||||
outputs:
|
||||
ref:
|
||||
description: 'The branch, tag or SHA that was checked out'
|
||||
commit:
|
||||
description: 'The commit SHA that was checked out'
|
||||
runs:
|
||||
using: node20
|
||||
main: dist/index.js
|
||||
post: dist/index.js
|
||||
@@ -0,0 +1,43 @@
|
||||
name: 'Setup Node.js environment'
|
||||
description: 'Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH.'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
always-auth:
|
||||
description: 'Set always-auth in npmrc.'
|
||||
default: 'false'
|
||||
node-version:
|
||||
description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.'
|
||||
node-version-file:
|
||||
description: 'File containing the version Spec of the version to use. Examples: package.json, .nvmrc, .node-version, .tool-versions.'
|
||||
architecture:
|
||||
description: 'Target architecture for Node to use. Examples: x86, x64. Will use system architecture by default.'
|
||||
check-latest:
|
||||
description: 'Set this option if you want the action to check for the latest available version that satisfies the version spec.'
|
||||
default: false
|
||||
registry-url:
|
||||
description: 'Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN.'
|
||||
scope:
|
||||
description: 'Optional scope for authenticating against scoped registries. Will fall back to the repository owner when using the GitHub Packages registry (https://npm.pkg.github.com/).'
|
||||
token:
|
||||
description: Used to pull node distributions from node-versions. Since there's a default, this is typically not supplied by the user. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting.
|
||||
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
|
||||
cache:
|
||||
description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.'
|
||||
cache-dependency-path:
|
||||
description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.'
|
||||
mirror:
|
||||
description: 'Used to specify an alternative mirror to downlooad Node.js binaries from'
|
||||
mirror-token:
|
||||
description: 'The token used as Authorization header when fetching from the mirror'
|
||||
# TODO: add input to control forcing to pull from cloud or dist.
|
||||
# escape valve for someone having issues or needing the absolute latest which isn't cached yet
|
||||
outputs:
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate if a cache was hit.'
|
||||
node-version:
|
||||
description: 'The installed node version.'
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'dist/setup/index.js'
|
||||
post: 'dist/cache-save/index.js'
|
||||
post-if: success()
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
name: "Setup Python"
|
||||
description: "Set up a specific version of Python and add the command-line tools to the PATH."
|
||||
author: "GitHub"
|
||||
inputs:
|
||||
python-version:
|
||||
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset."
|
||||
python-version-file:
|
||||
description: "File containing the Python version to use. Example: .python-version"
|
||||
cache:
|
||||
description: "Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry."
|
||||
required: false
|
||||
architecture:
|
||||
description: "The target architecture (x86, x64, arm64) of the Python or PyPy interpreter."
|
||||
check-latest:
|
||||
description: "Set this option if you want the action to check for the latest available version that satisfies the version spec."
|
||||
default: false
|
||||
token:
|
||||
description: "The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting."
|
||||
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
|
||||
cache-dependency-path:
|
||||
description: "Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies."
|
||||
update-environment:
|
||||
description: "Set this option if you want the action to update environment variables."
|
||||
default: true
|
||||
allow-prereleases:
|
||||
description: "When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython."
|
||||
default: false
|
||||
freethreaded:
|
||||
description: "When 'true', use the freethreaded version of Python."
|
||||
default: false
|
||||
outputs:
|
||||
python-version:
|
||||
description: "The installed Python or PyPy version. Useful when given a version range as input."
|
||||
cache-hit:
|
||||
description: "A boolean value to indicate a cache entry was found"
|
||||
python-path:
|
||||
description: "The absolute path to the Python or PyPy executable."
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'dist/setup/index.js'
|
||||
post: 'dist/cache-save/index.js'
|
||||
post-if: success()
|
||||
branding:
|
||||
icon: 'code'
|
||||
color: 'yellow'
|
||||
@@ -0,0 +1,33 @@
|
||||
name: 'Upload a Build Artifact'
|
||||
description: 'Upload a build artifact that can be used by subsequent workflow steps'
|
||||
author: 'GitHub'
|
||||
inputs:
|
||||
name:
|
||||
description: 'Artifact name'
|
||||
default: 'artifact'
|
||||
path:
|
||||
description: 'A file, directory or wildcard pattern that describes what to upload'
|
||||
required: true
|
||||
if-no-files-found:
|
||||
description: >
|
||||
The desired behavior if no files are found using the provided path.
|
||||
|
||||
Available Options:
|
||||
warn: Output a warning but do not fail the action
|
||||
error: Fail the action with an error message
|
||||
ignore: Do not output any warnings or errors, the action does not fail
|
||||
default: 'warn'
|
||||
retention-days:
|
||||
description: >
|
||||
Duration after which artifact will expire in days. 0 means using default retention.
|
||||
|
||||
Minimum 1 day.
|
||||
Maximum 90 days unless changed from the repository settings page.
|
||||
include-hidden-files:
|
||||
description: >
|
||||
If true, hidden files will be included in the uploaded artifact.
|
||||
If false, hidden files will be excluded from the uploaded artifact.
|
||||
default: 'false'
|
||||
runs:
|
||||
using: 'node16'
|
||||
main: 'dist/index.js'
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user