mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-04 06:50:15 +00:00
Update update_json_date.yml
This commit is contained in:
parent
147ba0e78d
commit
047667c428
28
.github/workflows/update_json_date.yml
vendored
28
.github/workflows/update_json_date.yml
vendored
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user