-
Notifications
You must be signed in to change notification settings - Fork 32
44 lines (35 loc) · 1.03 KB
/
changelog_checker.yml
File metadata and controls
44 lines (35 loc) · 1.03 KB
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
35
36
37
38
39
40
41
42
43
44
---
name: Check the changelogs
on:
pull_request:
permissions:
contents: read
jobs:
changelog-check:
name: changelog check
runs-on: ubuntu-latest
container: registry.opensuse.org/opensuse/bci/bci-ci:latest
steps:
- uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
- uses: actions/cache@v5
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}
- name: install python dependencies
run: poetry install
- name: fix the file permissions of the repository
run: chown -R $(id -un):$(id -gn) .
- name: fetch all branches
run: git fetch
- name: check the changelog
run: |
poetry run scratch-build-bot \
--os-version Tumbleweed -vvvv \
changelog_check \
--base-ref origin/${{ github.base_ref }} \
--head-ref ${{ github.event.pull_request.head.sha }}
env:
OSC_USER: "irrelevant"