GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
hooks: fix task when condition on hook copy/template
Previous implementation was not woking because with_first_found act as a
list. So it's resolved / expanded before the when statement. It will
fail if for exmaple the user only has templates and no files because
with_first_found will return an error.