Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Increase timeout of delete request and use env var for base url
Luke Vella701875a15801
diff --git a/.github/workflows/house-keeping.yml b/.github/workflows/house-keeping.ymlindex 2d0bc1077..2016966e5 100644--- a/.github/workflows/house-keeping.yml+++ b/.github/workflows/house-keeping.yml@@ -3,20 +3,28 @@ on:workflow_dispatch:schedule:- cron: "0 6 * * *" # Every day at 6:00am UTC-env:- API_SECRET: ${{ secrets.API_SECRET }}jobs:clean:name: "Clean"runs-on: ubuntu-latest+ env:+ API_SECRET: ${{ secrets.API_SECRET }}steps:+ - name: Check required variables+ run: |+ if [ -z "${{ vars.APP_BASE_URL }}" ]; then+ echo "Error: APP_BASE_URL is not set. Please set this variable in your GitHub repository settings."+ exit 1+ fi+ echo "BASE_URL=${{ vars.APP_BASE_URL }}" >> $GITHUB_ENV- name: Mark inactive polls as deletedrun: |- curl -X "POST" --fail "https://app.rallly.co/api/house-keeping/delete-inactive-polls" \+ curl -X "POST" --fail "${BASE_URL}/api/house-keeping/delete-inactive-polls" \-H "Authorization: Bearer ${API_SECRET}" \+ --max-time 300- name: Remove deleted pollsrun: |- curl -X "POST" --fail "https://app.rallly.co/api/house-keeping/remove-deleted-polls" \+ curl -X "POST" --fail "${BASE_URL}/api/house-keeping/remove-deleted-polls" \-H "Content-Type: application/json" \-H "Authorization: Bearer ${API_SECRET}" \- -d '{"take": 1000}'+ --max-time 300