Rename update_json_date.sh to update_json_date.yml

This commit is contained in:
CanbiZ 2025-01-15 11:21:38 +01:00 committed by GitHub
parent 757b5bd267
commit 0368ce36d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

27
.github/workflows/update_json_date.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Update date_created in PR JSON files
on:
pull_request:
types: [opened, synchronize]
schedule:
- cron: "0 0,6,12,18 * * *"
workflow_dispatch:
jobs:
update-date:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install yq
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Update date in JSON
run: |
./update_json_date.sh