File tree Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Expand file tree Collapse file tree 1 file changed +13
-15
lines changed Original file line number Diff line number Diff line change 1- name : Update date_created in PR JSON files
1+ name : Update JSON Date in PR
22
33on :
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
1013jobs :
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
You can’t perform that action at this time.
0 commit comments