Commit 278a46b
committed
runner-cleanup: give job-completed hook a .sh extension
The GitHub runner validates ACTIONS_RUNNER_HOOK_JOB_COMPLETED and rejects
it in the 'Complete runner' step unless the path ends in .sh/.ps1/.js:
Error: /usr/local/sbin/runner-job-completed is not a valid path to a
script. Make sure it ends in '.sh', '.ps1' or '.js'.
Rename runner-job-completed -> runner-job-completed.sh, install it under
that name, point the per-runner .env at it, and remove the old
extensionless copy from earlier installs. The .env wiring is an idempotent
sed, so re-running install migrates existing runners to the new path.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent ea4137a commit 278a46b
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| |||
233 | 238 | | |
234 | 239 | | |
235 | 240 | | |
236 | | - | |
| 241 | + | |
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| |||
0 commit comments