Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action init #68

Merged
merged 34 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
7b1254a
action-init
zacharyblasczyk Sep 25, 2024
d108874
Merge remote-tracking branch 'origin' into zacharyb/github-action
zacharyblasczyk Sep 25, 2024
f5dbf31
fix
zacharyblasczyk Sep 25, 2024
d7ffb66
Merge remote-tracking branch 'origin' into zacharyb/github-action
zacharyblasczyk Sep 25, 2024
19b9488
fix
zacharyblasczyk Sep 25, 2024
b6ddee5
fix
zacharyblasczyk Sep 25, 2024
28422b7
location and project
zacharyblasczyk Sep 25, 2024
ddaafa5
fix
zacharyblasczyk Sep 25, 2024
480f9f5
testing **
zacharyblasczyk Sep 25, 2024
2cd112d
fix
zacharyblasczyk Sep 25, 2024
12820f6
test
zacharyblasczyk Sep 25, 2024
4074c76
fix
zacharyblasczyk Sep 25, 2024
30f58d9
try . notation
zacharyblasczyk Sep 25, 2024
5cb4546
underscore
zacharyblasczyk Sep 25, 2024
1900158
logging
zacharyblasczyk Sep 25, 2024
3460c18
logging
zacharyblasczyk Sep 25, 2024
d5639ea
logging
zacharyblasczyk Sep 25, 2024
7327027
core info
zacharyblasczyk Sep 25, 2024
baf6256
recursion
zacharyblasczyk Sep 25, 2024
9224d9e
WIP needs review
zacharyblasczyk Sep 25, 2024
550d7b6
Adding missing fields
zacharyblasczyk Sep 25, 2024
612f025
revert
zacharyblasczyk Sep 25, 2024
76ff74a
Merge remote-tracking branch 'origin' into zacharyb/github-action
zacharyblasczyk Sep 25, 2024
5c73680
adding required outputs as optional config
zacharyblasczyk Sep 25, 2024
727b766
fix-build
zacharyblasczyk Sep 25, 2024
93b121e
testing with not required
zacharyblasczyk Sep 25, 2024
b5c2db4
fix traccing logic
zacharyblasczyk Sep 25, 2024
95fb1dd
better logging
zacharyblasczyk Sep 25, 2024
48dfc53
fix
zacharyblasczyk Sep 25, 2024
9a99dac
fix length
zacharyblasczyk Sep 25, 2024
4137046
final touches
zacharyblasczyk Sep 25, 2024
20355ba
final touches
zacharyblasczyk Sep 25, 2024
b4aaa49
rename
zacharyblasczyk Sep 25, 2024
335e28f
fix
zacharyblasczyk Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
19 changes: 19 additions & 0 deletions github/fetch-job-inputs/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Fetch Job Inputs"
description: "Fetches inputs from a job execution and sets outputs for future github jobs"
author: "Ctrlplane"
inputs:
api_url:
description: "The API URL to fetch 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
outputs:
api_inputs:
description: "JSON string containing the fetched inputs and their values"
runs:
using: "node20"
main: "./index.js"
Loading
Loading