Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
smac89 committed Nov 21, 2023
1 parent 53434db commit a0b05ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions index.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/functions/private.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ namespace Functions.Private {
...context.repo,
force: true,
ref: refName,
sha: process.env.GITHUB_SHA,
sha: process.env.GITHUB_SHA!,
}));
} else {
core.info(`Creating ref: refs/${refName} for: ${process.env.GITHUB_SHA}`);
({ data: upstreamRef } = await github.rest.git.createRef({
...context.repo,
ref: `refs/${refName}`,
sha: process.env.GITHUB_SHA,
sha: process.env.GITHUB_SHA!,
}));
}

Expand Down
2 changes: 1 addition & 1 deletion src/functions/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace Functions {
* @param {GitHub} github The octokit client instance
*/
export async function findLatestRef(github: GitHub): Promise<LatestRef> {
let [majorLatest, majorSha] = [Functions.getPublishRefVersion(), process.env.GITHUB_SHA];
let [majorLatest, majorSha] = [Functions.getPublishRefVersion(), process.env.GITHUB_SHA!];
let [repoLatest, repoSha] = [majorLatest, majorSha];

const major = majorLatest.major;
Expand Down
2 changes: 1 addition & 1 deletion tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"module": "commonjs",
"moduleResolution": "Node"
},
"include": ["*.ts", "../index.d.ts"]
"include": ["*.ts"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"@actionstagger": ["./src"]
}
},
"include": ["src/**/*.ts", "jest.config.ts", "index.d.ts"]
"include": ["src/**/*.ts", "jest.config.ts"]
}

0 comments on commit a0b05ba

Please sign in to comment.