From 12e53e781913d69041866a3b16f0bb90f984e2df Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Wed, 26 Jun 2024 18:02:50 +0530 Subject: [PATCH] fix data repo path --- .github/workflows/scraper-dry-run.yaml | 3 ++- tests/github-data-schema.test.mjs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scraper-dry-run.yaml b/.github/workflows/scraper-dry-run.yaml index 9f83cbe9..3d9eabd7 100644 --- a/.github/workflows/scraper-dry-run.yaml +++ b/.github/workflows/scraper-dry-run.yaml @@ -15,6 +15,8 @@ jobs: permissions: issues: read pull-requests: read + env: + DATA_REPO: ./ steps: - uses: actions/checkout@v4 @@ -35,7 +37,6 @@ jobs: run: node scripts/generateNewContributors.js env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DATA_REPO: ./data-repo - uses: actions/upload-artifact@v4 with: diff --git a/tests/github-data-schema.test.mjs b/tests/github-data-schema.test.mjs index 66a07297..270f8e42 100644 --- a/tests/github-data-schema.test.mjs +++ b/tests/github-data-schema.test.mjs @@ -8,7 +8,7 @@ import yaml from "yaml"; const cwd = process.cwd(); const SCHEMA_FILE = join(cwd, "schemas/github-data.yaml"); -const GH_DATA = join(cwd, process.env.DATA_REPO || "data-repo", "data/github"); +const GH_DATA = join(cwd, process.env.DATA_REPO ?? "data-repo", "data/github"); const schema = yaml.parse(fs.readFileSync(SCHEMA_FILE).toString());