From 765202e23c673b0a05661e271f5cc33f7e4dca88 Mon Sep 17 00:00:00 2001 From: Alexander Zhogov Date: Fri, 24 Jul 2020 13:00:04 +0300 Subject: [PATCH] GitHub CI: Add set_pr_labels (#1467) * GitHub CI: Add set_pr_labels * Change to run every 10 min * Update names --- .github/workflows/set_pr_labels.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/set_pr_labels.yml diff --git a/.github/workflows/set_pr_labels.yml b/.github/workflows/set_pr_labels.yml new file mode 100644 index 00000000000..1e14d3d4ac2 --- /dev/null +++ b/.github/workflows/set_pr_labels.yml @@ -0,0 +1,36 @@ +name: Pull Requests +on: + schedule: + - cron: '*/10 * * * *' + +jobs: + Set-Labels: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: 3.6 + + - name: Cache pip + uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('.github/org_control/requirements*.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + ${{ runner.os }}- + + - name: Install dependencies + run: | + pip install -r requirements.txt + working-directory: .github/org_control + + - name: Check PRs + run: | + python3 check_pr.py + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + working-directory: .github/org_control