Working Directory - CI/CD用語集の定義
working directory(current working directory、cwd)は、process が相対パスの基準として扱うフォルダです。各 process はそれぞれ独自のものを持ち、cd で変更します。
CI での扱い
GitHub Actions は各ステップをリポジトリのルート($GITHUB_WORKSPACE)で開始します。1 つの run: ブロック内の cd は次のステップには引き継がれません。各ステップは新しい shell だからです。代わりに working-directory: または defaults.run.working-directory を使いましょう。
関連ガイド
Environment Variable - CI/CD Glossary DefinitionEnvironment Variable: An environment variable is a named value held in a process environment and inherited by…
Shell - CI/CD Glossary DefinitionShell: A shell is the command interpreter that reads commands, expands variables and globs, and launches proc…
Mount Point - CI/CD Glossary DefinitionMount Point: A mount point is a directory where a filesystem (a disk, network share, or container volume) is…