Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
austenstone committed Aug 21, 2022
1 parent 3d06153 commit c230c31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ inputs:
description: The GitHub token used to create an authenticated client
default: ${{ github.token }}
required: false
org:
description: The name of the organization
default: ${{ github.organization }}
owner:
description: The owner of the repository
default: ${{ github.repository_owner }}
required: false
repo:
description: The name of the repository
default: ${{ github.repository }}
default: ${{ github.event.repository.name }}
required: false

runs:
Expand Down
4 changes: 2 additions & 2 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as github from '@actions/github';

interface Input {
token: string;
org: string;
owner: string;
repo: string;
}

Expand All @@ -17,7 +17,7 @@ const run = async (): Promise<void> => {
try {
const input = getInputs();
const octokit: ReturnType<typeof github.getOctokit> = github.getOctokit(input.token);
const langResponse = await octokit.request(`GET /repos/${input.org}/${input.repo}/languages`);
const langResponse = await octokit.request(`GET /repos/${input.owner}/${input.repo}/languages`);
core.debug(JSON.stringify({langResponse}))
const keys = Object.keys(langResponse.data);
core.setOutput('languages', JSON.stringify(keys));
Expand Down

0 comments on commit c230c31

Please sign in to comment.