Skip to content

Commit 2c8aab2

Browse files
committed
2 parents 9cc07cc + 047667c commit 2c8aab2

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
name: Update date_created in PR JSON files
1+
name: Update JSON Date in PR
22

33
on:
44
pull_request:
5-
types: [opened, synchronize]
5+
paths:
6+
- '.github/workflows/scripts/*.sh'
7+
- 'json/*.json'
8+
types: [opened, synchronize, reopened]
9+
610
schedule:
7-
- cron: "0 0,6,12,18 * * *"
8-
workflow_dispatch:
11+
- cron: '0 */2 * * *'
912

1013
jobs:
11-
update-date:
14+
update_json:
1215
runs-on: ubuntu-latest
1316

1417
steps:
15-
- name: Checkout PR
18+
- name: Check out repository
1619
uses: actions/checkout@v4
17-
with:
18-
ref: ${{ github.head_ref }}
1920

20-
- name: Install yq
21-
run: |
22-
sudo apt-get update
23-
sudo apt-get install -y jq
21+
- name: Make script executable
22+
run: chmod +x .github/workflows/scripts/update_json_date.sh
2423

25-
- name: Update date in JSON
26-
run: |
27-
./update_json_date.sh
24+
- name: Run the update script
25+
run: ./.github/workflows/scripts/update_json_date.sh

0 commit comments

Comments
 (0)