Skip to content

Fetch Latest Hukamnama #2029

Fetch Latest Hukamnama

Fetch Latest Hukamnama #2029

Workflow file for this run

name: Fetch Latest Hukamnama
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
- cron: '30 2 * * *'
- cron: '30 5 * * *'
jobs:
fetch-hukamnama:
runs-on: self-hosted
permissions:
contents: write
packages: read
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Debug trigger
run: |
echo "event_name=${{ github.event_name }}"
echo "schedule=${{ github.event.schedule }}"
date -u
date
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: https://npm.pkg.github.com
scope: '@gurbaninow'
- run: npm ci
- run: npm run fetch
name: Fetch Hukamnama
- id: date
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYY-MM-DD"
- uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: "feat: ${{ steps.date.outputs.time }}"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"