Skip to content

Commit

Permalink
fix data repo path
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jun 26, 2024
1 parent 6b26601 commit 12e53e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/scraper-dry-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
permissions:
issues: read
pull-requests: read
env:
DATA_REPO: ./
steps:
- uses: actions/checkout@v4

Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/github-data-schema.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 12e53e7

Please sign in to comment.