Skip to content

Commit

Permalink
fix: remove warning with detecting the local git repository when usin…
Browse files Browse the repository at this point in the history
…g Github's REST API (#2002)

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
jackton1 and actions-user authored Mar 20, 2024
1 parent 0276805 commit 077b23f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,12 +680,6 @@ export const isInsideWorkTree = async ({
}
)

if (stdout.trim() !== 'true') {
core.warning(
`The current working directory is not inside a git repository: ${cwd}`
)
}

return stdout.trim() === 'true'
}

Expand Down

0 comments on commit 077b23f

Please sign in to comment.