Skip to content

Commit

Permalink
refactor: refactor GitHub actions and API handling
Browse files Browse the repository at this point in the history
- Remove the conditional checking for `GITHUB_ACTION_PATH` before calling `warnUnsupportedRESTAPIInputs`
- Change in procedure for getting changed files from the REST API.
  • Loading branch information
jackton1 committed Jan 17, 2024
1 parent 89fe46d commit b8d749c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,7 @@ export async function run(): Promise<void> {
(!hasGitDirectory || inputs.useRestApi)
) {
core.info("Using GitHub's REST API to get changed files")
if (process.env.GITHUB_ACTION_PATH) {
await warnUnsupportedRESTAPIInputs({inputs})
}
await warnUnsupportedRESTAPIInputs({inputs})
await getChangedFilesFromRESTAPI({
inputs,
filePatterns,
Expand Down

0 comments on commit b8d749c

Please sign in to comment.