Skip to content

Revalidate data hari libur #24

Revalidate data hari libur

Revalidate data hari libur #24

name: Ambil 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: Setup node
uses: actions/setup-node@v4
with:
node-version: '>=18.*'
- name: Install dependecies
run: npm install
- name: Ambil data hari libur
run: |
npm run start
rm package-lock.json
- name: Commit files
continue-on-error: true
run: |
git config --local user.email "binsarjr121@gmail.com"
git config --local user.name "Binsar Dwi Jasuma"
git add -A
d=`date '+%Y-%m-%dT%H:%M:%SZ'`
git commit -m "chore: update scrape data $d" --no-verify
- name: Push changes
uses: ad-m/github-push-action@master
with:
force: true
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}