Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
datacap-bot[bot] authored Mar 20, 2024
1 parent 406fb74 commit 026fe99
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/renew-application-cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Renew Cache

on:
workflow_dispatch:
schedule:
# Schedule to run at 1 AM every day
- cron: '0 1 * * *'

jobs:
renew_cache:
runs-on: ubuntu-latest
env:
BACKEND_URL: https://fp-core-prod.dp04sa0tdc6pk.us-east-1.cs.amazonlightsail.com
steps:
- name: Renew Application Cache
run: |
REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)
curl -X POST "${BACKEND_URL}/application/cache/renewal" \
-H "Content-Type: application/json" \
-d '{"owner": "'${{ github.repository_owner }}'", "repo": "'$REPO_NAME'"}'

0 comments on commit 026fe99

Please sign in to comment.