Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 committed Dec 18, 2024
1 parent c04afbd commit 0204b3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions .github/scripts/add-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ async function main() {
const issueTitle = context.payload.issue.title;
const issueNumber = context.payload.issue.number;

const token = core.getInput("GITHUB_TOKEN");
const token = github.token;
console.log("Token: ", token);
const variable = core.getInput("VARIABLE");
console.log("Variable: ", variable);
const octokit = github.getOctokit(token);

const labels = issueTitle
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ jobs:
echo ${{ github.event.issue.title }}
echo ${{ github.event.issue.number}}
node .github/scripts/add-labels.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VARIABLE: "value"

0 comments on commit 0204b3c

Please sign in to comment.