From ecdfd6de042b982daab6c9b0e3f98b25152788ab Mon Sep 17 00:00:00 2001 From: ashwiniag Date: Sat, 12 Oct 2024 21:47:48 +0530 Subject: [PATCH] fix syntax --- .github/actions/gokakashi-scan/action.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/actions/gokakashi-scan/action.yaml b/.github/actions/gokakashi-scan/action.yaml index 54ff930..8fb81d5 100644 --- a/.github/actions/gokakashi-scan/action.yaml +++ b/.github/actions/gokakashi-scan/action.yaml @@ -30,7 +30,18 @@ outputs: description: 'URL of the scan report' runs: - using: 'node16' - pre: | - npm install - main: 'index.js' \ No newline at end of file + using: 'composite' + steps: + # Set up Node.js + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + cache: npm # Cache dependencies to speed up workflow runs + # Install dependencies + - run: npm ci # Installs dependencies from package-lock.json (clean install) + working-directory: ./.github/actions/gokakashi-scan + shell: bash + # Run the index.js script after installing dependencies + - run: node index.js # Executes your script + working-directory: ./.github/actions/gokakashi-scan + shell: bash \ No newline at end of file