Skip to content

feat(ci): Add rpmlint action to lint spec files (#6) #3

feat(ci): Add rpmlint action to lint spec files (#6)

feat(ci): Add rpmlint action to lint spec files (#6) #3

Workflow file for this run

name: Lint packages
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
merge_group:
workflow_dispatch:
jobs:
push-ghcr:
name: rpmlint
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
steps:
- name: Perform checkout
uses: actions/checkout@v4
- name: Find spec files
run: |
SPECS=$(find ./ -type 'f' | grep ".spec")
echo "SPECS=$SPECS" >> $GITHUB_ENV
- name: Run rpmlint
uses: EyeCantCU/[email protected]
with:
rpmfiles: ${{ env.SPECS }}