Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
wcj617 committed May 24, 2024
2 parents faecfd7 + b5e2c96 commit 3dd0683
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pr-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check PR Dependencies

on: pull_request

jobs:
check_dependencies:
runs-on: ubuntu-latest
name: Check Dependencies
steps:
- uses: gregsdennis/dependencies-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 7 additions & 5 deletions projects/initial-data/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ async function main(token, topic, numRepos) {
};


const { token, topic, numRepos } = getInput();
console.log(
`Starting process with token: REDACTED, topic: ${topic}, numRepos: ${numRepos}`,
);
export function runMain() {
const { token, topic, numRepos } = getInput();
console.log(
`Starting process with token: REDACTED, topic: ${topic}, numRepos: ${numRepos}`,
);

main(token, topic, numRepos);
main(token, topic, numRepos);
}
2 changes: 1 addition & 1 deletion projects/initial-data/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "index.js",
"engines": {},
"scripts": {
"start": "node main.js",
"start": "node start.js",
"test": "jest --watchAll --detectOpenHandles",
"eslint": "eslint . --ext js",
"eslint:fix": "pnpm run eslint --fix"
Expand Down
3 changes: 3 additions & 0 deletions projects/initial-data/start.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { runMain } from './main.js';

runMain();

0 comments on commit 3dd0683

Please sign in to comment.