Post Cache always failed #763
-
On Github actions, I always encountered this issue. https://github.com/hantsy/symfony-rest-sample/actions/runs/6071754673/job/16470411755 Error: The template is not valid. .github/workflows/build.yml (Line: 68, Col: 16):
hashFiles('**/composer.lock') failed. Fail to hash files under directory
'/home/runner/work/symfony-rest-sample/symfony-rest-sample' My Github actions workflow is modified from the Symfony example: https://github.com/hantsy/symfony-rest-sample/blob/master/.github/workflows/build.yml |
Beta Was this translation helpful? Give feedback.
Answered by
shivammathur
Sep 4, 2023
Replies: 1 comment 1 reply
-
Try with '/composer.lock'. - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
+ key: ${{ runner.os }}-composer-${{ hashFiles('/composer.lock') }} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hantsy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hantsy
Try with '/composer.lock'.