From 84e244960a830eedb9f03f5ea9ddb4aa693863b2 Mon Sep 17 00:00:00 2001 From: marinamsm Date: Tue, 28 May 2024 11:21:56 -0300 Subject: [PATCH] chore: set workspace in workflow --- .github/workflows/PR_reviewer.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/PR_reviewer.yml b/.github/workflows/PR_reviewer.yml index c97e822..865c65d 100644 --- a/.github/workflows/PR_reviewer.yml +++ b/.github/workflows/PR_reviewer.yml @@ -11,6 +11,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + repository: firefliesai/.github + path: firefliesai + sparse-checkout-cone-mode: false + sparse-checkout: | + .github/scripts/PR_reviewer.js - name: Setup Node uses: actions/setup-node@v4 with: @@ -37,7 +43,7 @@ jobs: const { WebClient } = require('@slack/web-api'); const format = require('slackify-markdown'); console.log('workspace...', '${{ github.workspace }}'); - const { reviewPR } = require('${{ github.workspace }}/scripts/PR_reviewer.js'); + const { reviewPR } = require('${{ github.workspace }}/firefliesai/.github/scripts/PR_reviewer.js'); // OCTOKIT REFERENCE: https://octokit.github.io/rest.js/v20 const octokit = new Octokit({ auth: process.env.GTP_TOKEN,