Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Mar 20, 2024
1 parent 98ed2d2 commit fa8a536
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
16 changes: 9 additions & 7 deletions packages/cli/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ declare global {
// The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example, feature-branch-1.
// For pull requests, the format is <pr_number>/merge.
GITHUB_REF_NAME: string;
// The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, main.
GITHUB_BASE_REF: string
// The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, main.
GITHUB_BASE_REF: string;
// The head ref or source branch of the pull request in a workflow run. This property is only set when the event that triggers a workflow run is either pull_request or pull_request_target. For example, feature-branch-1.
GITHUB_HEAD_REF: string
GITHUB_HEAD_REF: string;
// The owner and repository name. For example, octocat/Hello-World.
GITHUB_REPOSITORY: string
GITHUB_REPOSITORY: string;
// The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see "Events that trigger workflows." For example, ffac537e6cbbf934b08745a378932722df287a53.
GITHUB_SHA: string
GITHUB_SHA: string;
// The name of the person or app that initiated the workflow. For example, octocat.
GITHUB_ACTOR: string
GITHUB_ACTOR: string;
// The path to the file on the runner that contains the full event webhook payload. For example, /github/workflow/event.json.
GITHUB_EVENT_PATH: string
GITHUB_EVENT_PATH: string;
// A unique number for each workflow run within a repository. This number does not change if you re-run the workflow run. For example, 1658821493.
GITHUB_RUN_ID: string;
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ const eventPayload = await import(process.env.GITHUB_EVENT_PATH, {
with: { type: "json" },
});

console.log(octokit)
console.log(eventPayload)
console.log(process.env)
// console.log(octokit)
// console.log(eventPayload)

const main = defineCommand({
meta: {
Expand Down

0 comments on commit fa8a536

Please sign in to comment.