Skip to content

Commit

Permalink
feat: get env variables in a new way
Browse files Browse the repository at this point in the history
  • Loading branch information
SEBRATHEZEBRA committed Sep 14, 2023
1 parent 066cf23 commit 5632274
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:

- name: Run Code Review GPT
shell: bash
run: npx code-review-gpt review --ci=github --model=$MODEL
run: npx code-review-gpt review --ci=github --model=${{ env.MODEL }}

env:
MODEL: ${{ inputs.MODEL }}
Expand Down
1 change: 0 additions & 1 deletion code-review-gpt/src/review/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const review = async (
const organization = yargs.org;

const filteredFiles = filterFiles(files);
console.log("Filtered files -> ", filteredFiles);

if (filteredFiles.length === 0) {
logger.info("No file to review, finishing review now.");
Expand Down

0 comments on commit 5632274

Please sign in to comment.