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

オープン 初心者向け
#42,699 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions
領域
documentation

調査の方向性

リンクされているワークフロー構文の記事の jobs.<job_id>.steps.working-directory セクションから始め、次に参照されている action-v1.0.json のスキーマエントリを確認します。working-directory は run ステップにのみ適用されることをドキュメントに記載し、composite actions を含む uses ステップでの動作を説明するよう更新します。改訂した文言をスキーマおよび文書化されているワークフローの動作と照合して検証します。

索引モデルが issue の本文から書いたものです。

説明

content github_actions
Code of Conduct
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.

- 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
主要言語
TypeScript
スター
20.9k
フォーク
68.8k
平均マージ
13時間 55分
マージ済み PR(30日)
105

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/docs のほかの issue

github/docs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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