Update update_json_date.yml

This commit is contained in:
CanbiZ 2025-01-15 11:27:53 +01:00 committed by GitHub
parent 147ba0e78d
commit 047667c428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,27 +1,25 @@
name: Update date_created in PR JSON files name: Update JSON Date in PR
on: on:
pull_request: pull_request:
types: [opened, synchronize] paths:
- '.github/workflows/scripts/*.sh'
- 'json/*.json'
types: [opened, synchronize, reopened]
schedule: schedule:
- cron: "0 0,6,12,18 * * *" - cron: '0 */2 * * *'
workflow_dispatch:
jobs: jobs:
update-date: update_json:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout PR - name: Check out repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install yq - name: Make script executable
run: | run: chmod +x .github/workflows/scripts/update_json_date.sh
sudo apt-get update
sudo apt-get install -y jq
- name: Update date in JSON - name: Run the update script
run: | run: ./.github/workflows/scripts/update_json_date.sh
./update_json_date.sh