Skip to content

Commit

Permalink
feat(ci): Add rpmlint action to lint spec files
Browse files Browse the repository at this point in the history
Performs rpmlint on all spec files in the repository
  • Loading branch information
EyeCantCU committed Dec 20, 2023
1 parent ac1875f commit a01cc22
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rpmlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
id: spec-files
run: find ./*/*/ -type 'f' | grep ".spec"

- name: Run rpmlint
uses: EyeCantCU/[email protected]
with:
rpmfiles: ${{ join(steps.spec-files.outputs.*, '\n') }}

0 comments on commit a01cc22

Please sign in to comment.