diff --git a/.github/workflows/cron-surveyStatusUpdate.yml b/.github/workflows/cron-surveyStatusUpdate.yml deleted file mode 100644 index 7563067db5..0000000000 --- a/.github/workflows/cron-surveyStatusUpdate.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Cron - Survey status update - -on: - workflow_dispatch: - # "Scheduled workflows run on the latest commit on the default or base branch." - # β€” https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule - schedule: - # Runs "At 00:00." (see https://crontab.guru) - - cron: "0 0 * * *" - -permissions: - contents: read - -jobs: - cron-weeklySummary: - env: - APP_URL: ${{ secrets.APP_URL }} - CRON_SECRET: ${{ secrets.CRON_SECRET }} - runs-on: ubuntu-latest - steps: - - name: Harden the runner (Audit all outbound calls) - uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 - with: - egress-policy: audit - - - name: cURL request - if: ${{ env.APP_URL && env.CRON_SECRET }} - run: | - curl ${{ env.APP_URL }}/api/cron/survey-status \ - -X POST \ - -H 'content-type: application/json' \ - -H 'x-api-key: ${{ env.CRON_SECRET }}' \ - --fail diff --git a/.github/workflows/cron-weeklySummary.yml b/.github/workflows/cron-weeklySummary.yml deleted file mode 100644 index dc570a7cf9..0000000000 --- a/.github/workflows/cron-weeklySummary.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Cron - Weekly summary - -on: - workflow_dispatch: - # "Scheduled workflows run on the latest commit on the default or base branch." - # β€” https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule - schedule: - # Runs β€œAt 08:00 on Monday.” (see https://crontab.guru) - - cron: "0 8 * * 1" -permissions: - contents: read - -jobs: - cron-weeklySummary: - permissions: - contents: read - env: - APP_URL: ${{ secrets.APP_URL }} - CRON_SECRET: ${{ secrets.CRON_SECRET }} - runs-on: ubuntu-latest - steps: - - name: Harden the runner (Audit all outbound calls) - uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 - with: - egress-policy: audit - - name: cURL request - if: ${{ env.APP_URL && env.CRON_SECRET }} - run: | - curl ${{ env.APP_URL }}/api/cron/weekly-summary \ - -X POST \ - -H 'content-type: application/json' \ - -H 'x-api-key: ${{ env.CRON_SECRET }}' \ - --fail