Skip to content

Commit

Permalink
Added octokit parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Jun 13, 2024
1 parent bd8a5ab commit d124001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
_EOF
- name: Run build with default tasks
env:
MY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ./

- name: Run build with specified task
Expand Down
4 changes: 2 additions & 2 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function processAndDisplayBuildSummary() {
const data = await readJsonFile(filePath);
const taskSummaryTableRows = getBuildSummaryTable(data);
writeSummary(taskSummaryTableRows);
console.log(process.env.GITHUB_TOKEN);
console.log(process.env.MY_GITHUB_TOKEN);
getWorkflowStepNames(repository as string);
} catch (error) {
console.error('An error occurred while reading the build summary file or adding the build summary table:', error);
Expand All @@ -96,7 +96,7 @@ export async function getWorkflowRunJobs(owner: string, repo: string, runId: str
// Replace with your GitHub personal access token

const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN,
auth: process.env.MY_GITHUB_TOKEN,
});
try {
// Fetch the jobs for the specified workflow run
Expand Down

0 comments on commit d124001

Please sign in to comment.