Add development check before triggering workflow

Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-06-27 00:09:30 +02:00
parent eded296fd8
commit d096c22911

View File

@ -16,6 +16,7 @@ const Posts: CollectionConfig = {
console.log(process.env.TOKEN); console.log(process.env.TOKEN);
try { try {
process.env.NODE_ENV !== "development" &&
console.log( console.log(
await fetch( await fetch(
`https://api.github.com/repos/${process.env.REPOSITORY}/dispatches`, `https://api.github.com/repos/${process.env.REPOSITORY}/dispatches`,