From c8c45711513fead4fd14a6212670954e90ec2f14 Mon Sep 17 00:00:00 2001 From: Gabriel Batista Date: Sat, 27 Apr 2024 13:43:38 -0300 Subject: [PATCH] Update scan-simples.yml --- .github/workflows/scan-simples.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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