diff --git a/.github/workflows/scan-simples.yml b/.github/workflows/scan-simples.yml index 6ded057..9c621d9 100644 --- a/.github/workflows/scan-simples.yml +++ b/.github/workflows/scan-simples.yml @@ -10,9 +10,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + path: 'pisc-2024' + + - name: Set project directory + run: | + PROJECT_DIR=$(find pisc-2024 -mindepth 2 -maxdepth 2 -type d -name "day-*" | head -n 1) + echo "Project directory: $PROJECT_DIR" + echo "::set-env name=PROJECT_DIR::$PROJECT_DIR" - name: Navigate to project directory - run: cd pisc-2024/day-1 + run: cd ${{ env.PROJECT_DIR }} - name: Install dependencies run: npm install