forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 123
34 lines (30 loc) · 1.17 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
33
34
name: Changelog validation
permissions:
contents: read
pull-requests: write
issues: write
on:
pull_request_target:
types: [opened, reopened, edited, labeled, unlabeled, ready_for_review]
jobs:
CheckCL:
runs-on: ubuntu-latest
if: github.base_ref == 'master' && github.event.pull_request.draft == false
steps:
- name: Downloading scripts
run: |
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/changelog_utils.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/check_changelog.py
wget https://raw.githubusercontent.com/${{ github.repository }}/${{ github.base_ref }}/tools/changelog/tags.yml
- name: Installing Python
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
with:
python-version: '3.x'
- name: Installing deps
run: |
python -m pip install --upgrade pip
pip install ruamel.yaml PyGithub
- name: Changelog validation
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
run: python check_changelog.py