Ambil data dari tanggalan.com #3
This file contains 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: Ambil data dari tanggalan.com | |
on: | |
schedule: | |
# ambil data setiap tgl 12 Desember | |
- cron: "0 0 12 12 *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '>=19.4.0' | |
- name: Install dependecies | |
run: npm ci | |
- name: Ambil data daftar hari libur dari tanggalan.com | |
run: npm run start | |
- name: Commit files | |
run: | | |
git config --local user.email ${{ secrets.MY_EMAIL }} | |
git config --local user.name "Rusnoto Github Actions" | |
git add . | |
git commit -m "chore: update scrape data" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |