File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed
Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -11370,18 +11370,10 @@ const getLabelToBeApplied = (version) =>
1137011370const getIsIssueLabelAVersion = (label) => label.startsWith(versionLabel);
1137111371
1137211372(async () => {
11373- const githubToken =
11374- process.env.GITHUB_TOKEN ||
11375- core.getInput("github-token", { required: true });
11373+ const githubToken = core.getInput("github-token", { required: true });
1137611374 const octokit = github.getOctokit(githubToken);
1137711375
11378- // const { issue } = github.context;
11379-
11380- const issue = {
11381- owner: "lucasbento",
11382- repo: "core-workflows",
11383- number: 1,
11384- };
11376+ const { issue } = github.context;
1138511377
1138611378 // This fetches the issue again as it can have different data after running the other actions
1138711379 const { data: updatedIssue } = await octokit.rest.issues.get({
Original file line number Diff line number Diff line change @@ -82,18 +82,10 @@ const getLabelToBeApplied = (version) =>
8282const getIsIssueLabelAVersion = ( label ) => label . startsWith ( versionLabel ) ;
8383
8484( async ( ) => {
85- const githubToken =
86- process . env . GITHUB_TOKEN ||
87- core . getInput ( "github-token" , { required : true } ) ;
85+ const githubToken = core . getInput ( "github-token" , { required : true } ) ;
8886 const octokit = github . getOctokit ( githubToken ) ;
8987
90- // const { issue } = github.context;
91-
92- const issue = {
93- owner : "lucasbento" ,
94- repo : "core-workflows" ,
95- number : 1 ,
96- } ;
88+ const { issue } = github . context ;
9789
9890 // This fetches the issue again as it can have different data after running the other actions
9991 const { data : updatedIssue } = await octokit . rest . issues . get ( {
Original file line number Diff line number Diff line change 11{
22 "name" : " core-workflow-apply-version-label" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.3 " ,
44 "author" : {
55 "name" : " Lucas Bento" ,
66 "url" : " https://github.com/lucasbento"
You can’t perform that action at this time.
0 commit comments