Skip to content

Centralize out-of-tree drivers SRPMs (including alt), their sources and documentation. #27

Centralize out-of-tree drivers SRPMs (including alt), their sources and documentation.

Centralize out-of-tree drivers SRPMs (including alt), their sources and documentation. #27

name: Check drivers/README.md file
on:
pull_request:
paths:
- 'drivers/**'
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Rewrite SSH submodule URLs to HTTPS
run: git config --global url."https://github.com/".insteadOf "git@github.com:"
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Install rpm tools
run: sudo apt-get install -y rpm
- name: Generate drivers/README.md
run: ./scripts/update-drivers-list.sh
- name: Fail if README.md is not up to date
run: |
if ! git diff --exit-code drivers/README.md; then
echo "::error::drivers/README.md is out of date. Run drivers/update-drivers-list.sh and commit the result."
exit 1
fi