Skip to content

Commit

Permalink
Try test token
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-Holbrook committed Jan 29, 2025
1 parent e88821a commit 4a3b923
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:

- name: Create release
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
GH_TOKEN: ${{ secrets.TEST }}
run: npx ts-node src/cli.ts create-release --releaseType "${{ github.event.inputs.releaseType }}" --branch "${{ github.event.inputs.branch }}"
6 changes: 3 additions & 3 deletions src/ReleaseCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { Octokit } from '@octokit/rest';
type ReleaseType = 'major' | 'minor' | 'patch';

export class ReleaseCreator {
private token: string;
private octokit: Octokit;
private OCTOKIT_PER_PAGE = 100;
private ORG = 'rokucommunity';
Expand All @@ -23,9 +22,10 @@ export class ReleaseCreator {
) {
dotenv.config();

this.token = process.env.GH_TOKEN || '';
logger.log(`Token: ${process.env.GH_TOKEN}`);
logger.log(`Token empty check: ${process.env.GH_TOKEN !== ''}`);
this.octokit = new Octokit({
auth: this.token,
auth: process.env.GH_TOKEN,
request: { fetch }
});
}
Expand Down

0 comments on commit 4a3b923

Please sign in to comment.