From 4278a6afbd75d6484cb41298db0ffa4ebb1049a5 Mon Sep 17 00:00:00 2001 From: Fabio Seel Date: Thu, 10 Oct 2024 16:27:18 +0200 Subject: [PATCH] fix: step order/cache order in config_scan --- .github/workflows/config_scan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/config_scan.yml b/.github/workflows/config_scan.yml index 45afddc..9bc2faa 100644 --- a/.github/workflows/config_scan.yml +++ b/.github/workflows/config_scan.yml @@ -9,6 +9,7 @@ jobs: scan: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - name: Setup Apptainer uses: eWaterCycle/setup-apptainer@v2 with: @@ -17,7 +18,7 @@ jobs: id: cache-singularity uses: actions/cache@v3 with: - path: ~/${{ env.sif_file }} + path: ${{ env.sif_file }} key: ${{ runner.os }}-singularity-${{ hashFiles('~/resources/retinal-rl.def') }} - name: Pull Singularity container if: steps.cache-singularity.outputs.cache-hit != 'true' @@ -25,7 +26,6 @@ jobs: singularity registry login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} oras://ghcr.io singularity pull ${{ env.sif_file }} ${{ env.singularity_image }} - - uses: actions/checkout@v4 - name: Scan classification config run: | cp -r resources/config_templates/* config/