From 26eeff52f375b120d105e632cabf1ea741b80720 Mon Sep 17 00:00:00 2001 From: selmankoc Date: Mon, 24 Apr 2023 16:06:05 +0300 Subject: [PATCH] Create update-versions.yml --- .github/workflows/update-versions.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-versions.yml diff --git a/.github/workflows/update-versions.yml b/.github/workflows/update-versions.yml new file mode 100644 index 0000000000..75e5384a85 --- /dev/null +++ b/.github/workflows/update-versions.yml @@ -0,0 +1,29 @@ +name: Update Latest Versions + +on: + release: + types: + - published + +jobs: + update-versions: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install PyGithub + + - name: Update latest-versions.json and create PR + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + python .github/scripts/update_versions.py