Skip to content

Commit

Permalink
github action init (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk authored Sep 25, 2024
1 parent e86b49c commit a29ef6c
Show file tree
Hide file tree
Showing 24 changed files with 28,576 additions and 42 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf

github/**/index.js -diff linguist-generated=true
4 changes: 2 additions & 2 deletions apps/event-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"@types/semver": "^7.5.8",
"eslint": "catalog:",
"prettier": "catalog:",
"tsx": "^4.11.0",
"typescript": "^5.6.2"
"tsx": "catalog:",
"typescript": "catalog:"
},
"prettier": "@ctrlplane/prettier-config"
}
4 changes: 2 additions & 2 deletions apps/job-policy-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"@ctrlplane/tsconfig": "workspace:*",
"eslint": "catalog:",
"prettier": "catalog:",
"tsx": "^4.11.0",
"typescript": "^5.6.2"
"tsx": "catalog:",
"typescript": "catalog:"
},
"prettier": "@ctrlplane/prettier-config"
}
4 changes: 2 additions & 2 deletions apps/webservice/src/app/api/v1/job/[jobId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ export const GET = async (
release: row.release,
}));

const variabes = await db
const variables = await db
.select()
.from(jobVariable)
.where(eq(jobVariable.jobId, params.jobId));
const variable = Object.fromEntries(variabes.map((v) => [v.key, v.value]));
const variable = Object.fromEntries(variables.map((v) => [v.key, v.value]));

return NextResponse.json({ ...je.job, ...je, variable });
};
Expand Down
4 changes: 2 additions & 2 deletions apps/webshell-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"@types/ws": "^8.5.10",
"eslint": "catalog:",
"prettier": "catalog:",
"tsx": "^4.11.0",
"typescript": "^5.6.2"
"tsx": "catalog:",
"typescript": "catalog:"
},
"prettier": "@ctrlplane/prettier-config"
}
22 changes: 22 additions & 0 deletions github/get-job-inputs/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Get Job Inputs"
description: "Gets inputs from a job execution and sets outputs for future github jobs"
author: "Ctrlplane"
inputs:
api_url:
description: "The API URL to get job inputs from"
required: true
api_key:
description: "API key for authentication"
required: true
job_id:
description: "Job execution ID to set outputs for future GitHub jobs"
required: true
required_outputs:
description: "A list of required outputs to be set for future jobs"
required: false
outputs:
job_outputs:
description: "JSON string containing the job inputs and their values"
runs:
using: "node20"
main: "./index.js"
Loading

0 comments on commit a29ef6c

Please sign in to comment.