This commit is contained in:
Fergal Moran
2023-02-21 16:18:20 +00:00
parent 2e19a1c7bc
commit 26f7a12929
2 changed files with 6 additions and 11 deletions

View File

@@ -1,23 +1,12 @@
# This is a basic workflow to help you get started with Actions
name:
Cache Jobs
# Controls when the workflow will run
on:
# Triggers the workflow every 5 minutes
schedule:
- cron: "*/5 * * * *"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "cron"
cron:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a single command using the runners shell
- name: Cache outstanding events
run: curl -X GET https://external.dev.fergl.ie:3000/api/cron/cache

View File

@@ -0,0 +1,6 @@
import { NextApiRequest, NextApiResponse } from "next";
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
res.status(200).json({ hello: "sailor" });
};
export default handler;