Skip to content

Commit

Permalink
.github: checkout source code to perform cache clean up
Browse files Browse the repository at this point in the history
When performing a golang cache cleanup we need to fetch the source code
so that we can retrieve the right hashfile from '**/go.sum' otherwise it
will always be empty.

Signed-off-by: André Martins <andre@cilium.io>
  • Loading branch information
aanm committed Jun 8, 2023
1 parent 68ae82e commit 0350880
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-images-cache-cleaner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
- name: docker-plugin

steps:
# Fetch the source code so that we can get the right cache key
- name: Checkout Source Code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
persist-credentials: false

# Load Golang cache build from GitHub
- name: Load ${{ matrix.name }} Golang cache build from GitHub
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand Down

0 comments on commit 0350880

Please sign in to comment.