diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml new file mode 100644 index 0000000..2a00684 --- /dev/null +++ b/.github/workflows/daily.yml @@ -0,0 +1,14 @@ +name: Scheduled Deployment every 5 minutes + +on: + schedule: + - cron: '*/5 * * * *' # Runs every 5 minutes + # - cron: '0 16 * * 1-5' # UTC time for 5 PM CET + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Trigger Deployment + run: | + curl -X POST 'https://api.render.com/deploy/srv-cosfupi1hbls73fkanpg?key=JZNn_8s9gAU' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 41488a8..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,25 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Scheduled Deployment - -# Controls when the workflow will run -on: - schedule: - # Triggers the workflow at 5 PM CET every weekday - - cron: '*/5 * * * *' # Runs every 5 minutes - - # - cron: '0 16 * * 1-5' # UTC time for 5 PM CET - -# 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 "deploy" - deploy: - # 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 command using the runners shell to trigger deployment - - name: Trigger Deployment - run: | - curl -X POST 'https://api.render.com/deploy/srv-cosfupi1hbls73fkanpg?key=JZNn_8s9gAU'