GitHub Actions: artifact expired before downloading
When trying to play the old build download-artifact does not find a file.
How to identify the source of the problem
Check the retention-days of the artifact and time since the last successful upload.
Check the workflow event type, permissions joba, run ID and first failed step.
Repair steps
Extend retention in the permitted range or create releases with durable artifacts if required.
How to Test Solution
Supported edition can be played from a preserved artifact, and old files have a planned retention.
Security and restrictions
Apply minimum token privileges and re-impotence. Do not remove main branch protection only for the convenience of the machine.