github / github/docs

Docker pre.entrypoint links to Node pre.pre-if

未关闭
#35,264 11 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
actions content never-stale SME reviewed
主要语言
TypeScript
星标
20.8k
派生
68.7k
平均合并
12 小时 24 分钟
30 天内合并 PR
105

描述

### Code of Conduct

- [X] I have read and agree to the GitHub Docs project's [Code of Conduct](https://github.com/github/docs/blob/main/.github/CODE_OF_CONDUCT.md)

### What article on docs.github.com is affected?

https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runspre-entrypoint

### What part(s) of the article would you like to see updated?

I think a distinct `.pre-if` should be added to the https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runs-for-docker-container-actions and https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runspre-entrypoint's [runs.pre-if](https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runspre-if) link should be changed to point to it.

### Additional information

Here's a [run](https://github.com/check-spelling-sandbox/bookish-rotary-phone/actions/runs/11798849757/job/32865989146#step:3:4) with [`pre-if: true`](https://github.com/check-spelling-sandbox/bookish-rotary-phone/blob/f2d5070741851073be004b8e2101cc19716ae24a/action.yml#L4-L5):
```yml
pre-entrypoint: '/pre.sh'
pre-if: true
```
> pre

Here's a [run](https://github.com/check-spelling-sandbox/bookish-rotary-phone/actions/runs/11798769996/job/32865715637#step:2:1) with [`pre-if: false`](https://github.com/check-spelling-sandbox/bookish-rotary-phone/blob/b5026f5af816eedd733474e1d70f85d4d73fe5f8/action.yml#L4-L5) (which is good because the pre-entrypoint was broken):
```yml
pre-entrypoint: 'pre.sh'
pre-if: false
```
https://github.com/check-spelling-sandbox/bookish-rotary-phone/actions/runs/11798769996/job/32865715637

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。