GitHub Actions
Random bash tips and tricks to (try to) use GitHub Actions properly and efficiently...
Using temporary dir
When you need to use temporary files within a GitHub Action, you can use the ${{ runner.temp }}
context variable or the RUNNER_TEMP
environment variable.
Things to note:
- The temporary directory is job-specific and not shared between jobs
- The directory is cleared at the start and end of each job, only if the runner's user account have permission to delete them.