The template is not valid. hashFiles('**/pom.xml') couldn't finish within 120 seconds.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello All,
We are using actions/cache@v3 actions into our GH actions workflows and once in a while we are seeing the below error
The template is not valid. hashFiles('**/pom.xml') couldn't finish within 120 seconds.
Below is the snippet for the workflow we are using for maven cache
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
Do we have any solution for this issue? Do we need to add any additional parameters to fix this issue?
Thanks,
Ankur
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported workflow snippet using actions/cache@v3 and hashFiles('**/pom.xml'), then investigate the intermittent 120-second template timeout. A useful outcome would identify a supported resolution or clearly document the conditions and configuration that reproduce the failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100