Skip to content

Commit 4d0632f

Browse files
authored
Create update_json_date.sh
1 parent 69288b1 commit 4d0632f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update date_created in PR JSON files
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
schedule:
7+
- cron: "0 0,6,12,18 * * *"
8+
workflow_dispatch:
9+
10+
jobs:
11+
update-date:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout PR
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.head_ref }}
19+
20+
- name: Install yq
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y jq
24+
25+
- name: Update date in JSON
26+
run: |
27+
./update_json_date.sh

0 commit comments

Comments
 (0)