github / github/docs

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

Aperta
#35,264 11 commenti 1 reazione 0 assegnatari Vedi su GitHub
actions content never-stale SME reviewed
Lingua principale
TypeScript
Stelle
20.8k
Fork
68.7k
Merge medio
12h 24m
PR unite (30g)
105

Descrizione

### 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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.