From e178e424bf92c994ee4d0135a9fc93b8d39a9197 Mon Sep 17 00:00:00 2001 From: MrGKanev Date: Tue, 10 Sep 2024 12:52:09 +0300 Subject: [PATCH] Create update-plugins-csv.yml --- .github/workflows/update-plugins-csv.yml | 78 ++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 .github/workflows/update-plugins-csv.yml diff --git a/.github/workflows/update-plugins-csv.yml b/.github/workflows/update-plugins-csv.yml new file mode 100644 index 0000000..8d84c82 --- /dev/null +++ b/.github/workflows/update-plugins-csv.yml @@ -0,0 +1,78 @@ +name: Update plugins.csv + +on: + schedule: + - cron: '0 0 * * *' # Run daily at midnight UTC + workflow_dispatch: # Allow manual triggering + +jobs: + update-plugins-csv: + 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 requests + + - name: Update plugins.csv + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + python - <