Replies: 2 comments
-
| 
         Also hitting this - is it not possible to cache submodules?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 
         I am using it this way:       - name: Checkout myrepo
        uses: actions/checkout@v3
      - name: Cache Submodules
        id: cache-submodule
        uses: actions/cache@v3
        with:
          path: |
            my/sub1
            my/sub2
          key: ${{ runner.os }}-submodules
      - name: Update git submodules
        if: steps.cache-submodule.outputs.cache-hit != 'true'
        uses: actions/checkout@v3
        with:
          submodules: recursiveI get same warning, but it looks like caching still works  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I use actions/cache to cache all git submodules. But get a warning at POST RUN actions/checkout.
I want to reuse the caches of submodules, so
.git/modules/test/fixture/assertshould be empty.So how to fix these warnings?
Is there any option to skip submodules when actions/checkout run
/usr/bin/git submodule foreach?My workflow steps:
.gitmodules:
Beta Was this translation helpful? Give feedback.
All reactions