Skip to content

Commit

Permalink
fix: use recipes/recipe.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xynydev authored May 2, 2024
1 parent beafe77 commit 199d463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/api/github/createRepo/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function POST({ request, cookies }): Promise<Response> {
log("Fetching template recipe.yml...");
const recipe = await ghApiGet(
token,
`/repos/${repoData.full_name}/contents/config/recipe.yml`
`/repos/${repoData.full_name}/contents/recipes/recipe.yml`
);
if (!recipe.ok) {
log("Fetching recipe failed: " + JSON.stringify(recipe));
Expand All @@ -92,7 +92,7 @@ export async function POST({ request, cookies }): Promise<Response> {
// update
const recipeUpdate = await ghApiPut(
token,
`/repos/${repoData.full_name}/contents/config/recipe.yml`,
`/repos/${repoData.full_name}/contents/recipes/recipe.yml`,
{
message: "chore(automatic): change image name in recipe",
content: btoa(recipeStr),
Expand Down

0 comments on commit 199d463

Please sign in to comment.