From 7fb5f3b7f9be0cccd4be276645de044c7167d67f Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Fri, 7 Aug 2020 18:07:33 -0500 Subject: [PATCH] GitHub Actions: check labels --- .github/workflows/labels.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/labels.yml diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml new file mode 100644 index 00000000..a3558c1b --- /dev/null +++ b/.github/workflows/labels.yml @@ -0,0 +1,30 @@ +name: Labels +on: + schedule: + - cron: '0 12/24 * * 1' # ~> every Monday at 12:00 UTC + push: + branches: gh-pages +jobs: + check-labels: + name: Check repository labels + runs-on: ubuntu-latest + steps: + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install Python modules + run: | + python3 -m pip install --upgrade pip + python3 -m pip install wheel + python3 -m pip install pyyaml==5.3.1 + python3 -m pip install requests + + - name: Checkout the lesson + uses: actions/checkout@master + + - name: Check lesson labels + run: | + git remote rename origin upstream + make repo-check