Skip to content

Commit 9984ee5

Browse files
committed
chore: lint
1 parent 0fe3f56 commit 9984ee5

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/github-helper.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,21 @@ export class GitHubHelper {
182182
)
183183
}
184184

185-
private async getWorkflow(repository: string, workflowName: string): Promise<string> {
185+
private async getWorkflow(
186+
repository: string,
187+
workflowName: string
188+
): Promise<string> {
186189
core.debug(`Getting workflow ${workflowName} for repository ${repository}`)
187-
const {data: workflows} = await this.octokit.rest.actions.listRepoWorkflows({
188-
...this.parseRepository(repository)
189-
})
190+
const {data: workflows} = await this.octokit.rest.actions.listRepoWorkflows(
191+
{
192+
...this.parseRepository(repository)
193+
}
194+
)
190195
for (const workflow of workflows.workflows) {
191-
if (workflow.path === `${workflowName}.yml` || workflow.path === `${workflowName}.yaml`) {
196+
if (
197+
workflow.path === `${workflowName}.yml` ||
198+
workflow.path === `${workflowName}.yaml`
199+
) {
192200
core.debug(`Selecting workflow file ${workflow.path}`)
193201
return workflow.path
194202
}

0 commit comments

Comments
 (0)