Commit c1fc2db
authored
ci(.github/workflows): install .NET to a user-writable dir on peco-driver (#541)
## Problem
The engineer-bot Fix workflow fails at **Setup .NET** on the self-hosted
peco-driver runner:
> mkdir: cannot create directory '/usr/share/dotnet': Permission denied
> ##[error]Failed to install dotnet, exit code: 1
`actions/setup-dotnet` installs to root-owned `/usr/share/dotnet`, but
the runner runs as non-root (`azureuser`).
## Fix
Set `DOTNET_INSTALL_DIR: ${{ runner.temp }}/dotnet` on the Setup .NET
step in `engineer-bot.yaml` + `engineer-bot-followup.yml`, so it
installs to a user-writable dir (setup-dotnet then adds it to PATH +
sets DOTNET_ROOT for later steps). Self-contained; works regardless of
which peco-driver runner the job lands on.
Same non-root-runner class we already fixed for the Python venv (#539)
and the npm prefix (#540). (`reyden-rest-nightly.yml` happens to land on
runners with .NET pre-installed, so it no-ops setup-dotnet — but the
bots can't rely on that.)
This pull request and its description were written by Isaac.1 parent 61e60f9 commit c1fc2db
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
0 commit comments