From 18a88788febe674e2dd5092d48b53b419eea3366 Mon Sep 17 00:00:00 2001 From: Binbin Li Date: Fri, 8 Nov 2024 10:45:36 +0800 Subject: [PATCH] fix: fix the conditional check on update-trivy-cache job (#1919) Signed-off-by: Binbin Li --- .github/workflows/update-trivy-cache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-trivy-cache.yml b/.github/workflows/update-trivy-cache.yml index dd39f3080..6d2fea0be 100644 --- a/.github/workflows/update-trivy-cache.yml +++ b/.github/workflows/update-trivy-cache.yml @@ -10,7 +10,7 @@ permissions: read-all jobs: update-trivy-db: runs-on: ubuntu-latest - if: ${{ github.ref == github.event.repository.default_branch }} + if: ${{ github.ref_name == github.event.repository.default_branch }} steps: - name: Setup oras uses: oras-project/setup-oras@9c92598691bfef1424de2f8fae81941568f5889c # v1.2.1