summaryrefslogtreecommitdiffstats
path: root/.github/workflows/updater.yml
blob: f43b22aa55f032bd05bf65d895d4db71eafc8457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: LSP Update check

on:
  schedule:
    - cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI

jobs:
  update-lsp:
    name: Check for LSP update and create issue
    runs-on: ubuntu-latest
    permissions:
      issues: write

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Use Python 3.10
        uses: actions/setup-python@v4
        with:
          python-version: '3.10'

      - name: Update pip, install wheel and nox
        run: python -m pip install -U pip wheel nox PyGithub
        shell: bash

      - name: Run Checker
        run: python ./.github/workflows/lsp_updater.py
        env:
          GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}