|
98 | 98 | if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
99 | 99 | run: echo "Latest Elasticsearch ${{ matrix.release }}.x = ${{ steps.elastic-version.outputs.version }}" |
100 | 100 |
|
| 101 | + - name: Debug - list existing apt caches |
| 102 | + if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
| 103 | + env: |
| 104 | + GH_TOKEN: ${{ github.token }} |
| 105 | + run: | |
| 106 | + WANT_KEY="${{ runner.os }}-apt-elastic-${{ steps.elastic-version.outputs.version }}" |
| 107 | + echo "=== Looking for key: ${WANT_KEY} ===" |
| 108 | + echo "=== All caches with prefix '${{ runner.os }}-apt-elastic-${{ matrix.release }}.' ===" |
| 109 | + gh api "repos/${{ github.repository }}/actions/caches?key=${{ runner.os }}-apt-elastic-${{ matrix.release }}.&per_page=100" \ |
| 110 | + | jq -r '.actions_caches[] | "\(.key) size=\(.size_in_bytes) created=\(.created_at)"' |
| 111 | + echo "=== Total cache count in repo ===" |
| 112 | + gh api "repos/${{ github.repository }}/actions/caches?per_page=1" | jq '.total_count' |
| 113 | +
|
101 | 114 | - name: Restore Elastic apt cache |
102 | 115 | id: apt-cache |
103 | 116 | if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
@@ -224,6 +237,19 @@ jobs: |
224 | 237 | if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
225 | 238 | run: echo "Latest Elasticsearch ${{ matrix.release }}.x = ${{ steps.elastic-version.outputs.version }}" |
226 | 239 |
|
| 240 | + - name: Debug - list existing apt caches |
| 241 | + if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
| 242 | + env: |
| 243 | + GH_TOKEN: ${{ github.token }} |
| 244 | + run: | |
| 245 | + WANT_KEY="${{ runner.os }}-apt-elastic-${{ steps.elastic-version.outputs.version }}" |
| 246 | + echo "=== Looking for key: ${WANT_KEY} ===" |
| 247 | + echo "=== All caches with prefix '${{ runner.os }}-apt-elastic-${{ matrix.release }}.' ===" |
| 248 | + gh api "repos/${{ github.repository }}/actions/caches?key=${{ runner.os }}-apt-elastic-${{ matrix.release }}.&per_page=100" \ |
| 249 | + | jq -r '.actions_caches[] | "\(.key) size=\(.size_in_bytes) created=\(.created_at)"' |
| 250 | + echo "=== Total cache count in repo ===" |
| 251 | + gh api "repos/${{ github.repository }}/actions/caches?per_page=1" | jq '.total_count' |
| 252 | +
|
227 | 253 | - name: Restore Elastic apt cache |
228 | 254 | id: apt-cache |
229 | 255 | if: contains(matrix.distro, 'ubuntu') || contains(matrix.distro, 'debian') |
|
0 commit comments