Monthly API Scraping Data #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Monthly API Scraping Data | |
| on: | |
| schedule: | |
| - cron: '0 0 1 * *' # Menjalankan tugas setiap awal bulan pada pukul 00:00 UTC | |
| workflow_dispatch: | |
| jobs: | |
| hit-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Hit API | |
| run: | | |
| API_URL="https://dayoffapi.vercel.app/api/get-data" | |
| API_RESPONSE=$(curl -s $API_URL) | |
| echo "API Response: $API_RESPONSE" |