github / github/docs

`jobs.<job_id>.steps[*].working-directory` doesn't say it's incompatible with `uses`

オープン
#42,699 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
content github_actions
主要言語
TypeScript
スター
20.8k
フォーク
68.7k
平均マージ
12時間 24分
マージ済み PR(30日)
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/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsworking-directory

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

> Using the working-directory keyword, you can specify the working directory of where to run the command.

```yaml
- name: Clean temp directory
run: rm -rf *
working-directory: ./temp
```

It doesn't _actually_ say that it _only_ works for `run:` commands. And it doesn't explain what would happen if you use a `uses:` command that's implemented as a `composite` action.

### Additional information

Apparently the _languageservices_ code believes that `working-directory` is only valid for `run`-step things: https://github.com/actions/languageservices/blob/fb5c6e4f27bb1ddf512609a6a341aadd17ce86f3/workflow-parser/src/action-v1.0.json#L339-L372

Image

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。