github / docs

The open-source repo for docs.github.com
https://docs.github.com
Creative Commons Attribution 4.0 International
16.39k stars 59.95k forks source link

add note about restarting the runner service after changing the .env … #35356

Open christianspecht opened 2 days ago

christianspecht commented 2 days ago

…file

Why:

Because I spent about half an hour scratching my head why my script defined in the .env file was not executed, until I had the idea to restart the runner service.
I assumed that the runner read the file before each job run, IMO it's not obvious that it only happens after restarting.

IMO it's not obvious that the runner only reads the file after restarting, I assumed that it happens before each job run.

Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

welcome[bot] commented 2 days ago

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

github-actions[bot] commented 2 days ago

Automatically generated comment ℹ️

This comment is automatically generated and will be overwritten every time changes are committed to this branch.

The table contains an overview of files in the content directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the data directory will not show up in this table.


Content directory changes

You may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request. Source Preview Production What Changed
actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job.md fptbr>[ghec](https://docs-35356-dc4777.preview.ghdocs.com/enterprise-cloud@latest/actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job)<brghes@ 3.15 3.14 3.13 3.12 3.11 3.10
fptbr>[ghec](https://docs.github.com/enterprise-cloud@latest/actions/hosting-your-own-runners/managing-self-hosted-runners/running-scripts-before-or-after-a-job)<brghes@ 3.15 3.14 3.13 3.12 3.11 3.10

fpt: Free, Pro, Team ghec: GitHub Enterprise Cloud ghes: GitHub Enterprise Server

nguyenalex836 commented 2 days ago

@christianspecht Thanks so much for opening a PR! I'll get this triaged for review ✨

github-actions[bot] commented 6 hours ago

Thanks for opening a pull request! We've triaged this issue for technical review by a subject matter expert :eyes: