Skip to content

Commit

Permalink
use github workflow to revalidate cron instead of vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
binsarjr committed Feb 16, 2024
1 parent 8fa11a2 commit 15b7c63
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/scrape-schedule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Revalidate data hari libur
on:
schedule:
- cron: '1 7 1 * *'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: revalidate
run: |
curl 'https://apiliburnasional.vercel.app/api/revalidate'
8 changes: 0 additions & 8 deletions vercel.json

This file was deleted.

0 comments on commit 15b7c63

Please sign in to comment.