Document job hook scripts #3558
Labels
community
Community contribution
enhancement
New feature or request
needs triage
Requires review from the maintainers
What would you like added?
The GitHub Docs document hooks to configure scripts to run before or after a job, by setting environment variables that point to scripts to run. This would suggest people could set and use those variables directly. However, the runner is already using them:
actions-runner-controller/runner/startup.sh
Lines 11 to 12 in 9afd930
It is unclear what the consequences would be of setting the environment variables to some other value, and thus not executing the expected scripts.
Furthermore, the provided scripts already provide a different mechanism for adding scripts to run,
/etc/arc/hooks/job-started.d/
and/etc/arc/hooks/job-completed.d/
, but that is not documented anywhere.Why is this needed?
Following the current documentation results in unexpected and undocumented loss of features. Adequate documentation would explain the trade-offs of losing these features and offer the alternative of adding scripts to the relevant directory.
Additional context
The text was updated successfully, but these errors were encountered: