forked from SierraBay/SierraBay12
-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (29 loc) · 1.11 KB
/
check_changelog.yml
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
31
32
name: Проверка Ченджлога
permissions:
contents: read
pull-requests: write
issues: write
on:
pull_request_target:
types: [opened, reopened, edited]
jobs:
CheckCL:
runs-on: ubuntu-latest
if: github.repository == 'SierraBay/SierraBay12' && github.base_ref == 'dev-sierra' && github.event.pull_request.draft == false
steps:
- name: Скачивание файлов
run: |
wget https://raw.githubusercontent.com/SierraBay/SierraBay12/dev-sierra/tools/changelog/sierra_check_changelog.py
wget https://raw.githubusercontent.com/SierraBay/SierraBay12/dev-sierra/tools/changelog/tags.yml
- name: Установка Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: '3.x'
- name: Установка зависимостей
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml PyGithub
- name: Проверка чейнджлога
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
run: python sierra_check_changelog.py