From 4d0632fea02df9d56aa35c6266ca2bc818ce82e5 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:19:32 +0100 Subject: [PATCH] Create update_json_date.sh --- .github/workflows/update_json_date.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/update_json_date.sh diff --git a/.github/workflows/update_json_date.sh b/.github/workflows/update_json_date.sh new file mode 100644 index 000000000..3b1e20615 --- /dev/null +++ b/.github/workflows/update_json_date.sh @@ -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