2025-01-15 10:27:53 +00:00
|
|
|
name: Update JSON Date in PR
|
2025-01-15 10:19:32 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2025-01-15 10:27:53 +00:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/scripts/*.sh'
|
|
|
|
- 'json/*.json'
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
|
2025-01-15 10:19:32 +00:00
|
|
|
schedule:
|
2025-01-15 10:27:53 +00:00
|
|
|
- cron: '0 */2 * * *'
|
2025-01-15 10:19:32 +00:00
|
|
|
|
|
|
|
jobs:
|
2025-01-15 10:27:53 +00:00
|
|
|
update_json:
|
2025-01-15 10:19:32 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2025-01-15 10:27:53 +00:00
|
|
|
- name: Check out repository
|
2025-01-15 10:19:32 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2025-01-15 10:27:53 +00:00
|
|
|
- name: Make script executable
|
|
|
|
run: chmod +x .github/workflows/scripts/update_json_date.sh
|
2025-01-15 10:19:32 +00:00
|
|
|
|
2025-01-15 10:27:53 +00:00
|
|
|
- name: Run the update script
|
|
|
|
run: ./.github/workflows/scripts/update_json_date.sh
|