Skip to content

Commit 92b4cec

Browse files
author
Lucas Bento
committed
Bump version
1 parent 4db7023 commit 92b4cec

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

dist/index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11370,18 +11370,10 @@ const getLabelToBeApplied = (version) =>
1137011370
const 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({

index.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,10 @@ const getLabelToBeApplied = (version) =>
8282
const 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({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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"

0 commit comments

Comments
 (0)