From f5c83529d51e927a1500a6ca6524caa2a1c0b976 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Thu, 1 Aug 2024 14:43:10 -0500 Subject: [PATCH] Create API Deploy Action --- .github/workflows/deploy-api.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy-api.yaml diff --git a/.github/workflows/deploy-api.yaml b/.github/workflows/deploy-api.yaml new file mode 100644 index 0000000..af3fe3b --- /dev/null +++ b/.github/workflows/deploy-api.yaml @@ -0,0 +1,17 @@ +name: Deploy 02 API + +on: + workflow_dispatch: + schedule: + - cron: '0 3 * * *' # Runs every day at 3 AM + +jobs: + make-get-request: + runs-on: ubuntu-latest + + steps: + - name: Trigger Functions Deploy Hook + run: | + curl -X POST "$API_DEPLOY_HOOK_URL" + env: + API_DEPLOY_HOOK_URL: ${{ secrets.API_DEPLOY_HOOK_URL }}