mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-26 18:46:18 +00:00
Create update_json_date.sh
This commit is contained in:
parent
69288b197f
commit
4d0632fea0
27
.github/workflows/update_json_date.sh
vendored
Normal file
27
.github/workflows/update_json_date.sh
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user