diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c9c2081..18f7d04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,7 +39,7 @@ jobs: uses: actions/cache@v4 with: path: src/Cody.VisualStudio/Agent - key: ${{ runner.os }}-agent-${{ hashFiles('agent/agent.version') }} + key: ${{ runner.os }}-agent-${{ hashFiles('agent/agent.version', 'agent/buildAgent.ps1', 'agent/runBuildAgent.ps1') }} - name: Build agent if needed if: ${{ steps.cache-agent.outputs.cache-hit != 'true' }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 55e245e..04a8ebe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,7 +59,7 @@ jobs: uses: actions/cache@v4 with: path: src/Cody.VisualStudio/Agent - key: ${{ runner.os }}-agent-${{ hashFiles('agent/agent.version') }} + key: ${{ runner.os }}-agent-${{ hashFiles('agent/agent.version', 'agent/buildAgent.ps1', 'agent/runBuildAgent.ps1') }} - name: Build agent if needed if: ${{ steps.cache-agent.outputs.cache-hit != 'true' }}