Skip to content

Commit

Permalink
feat(ci): Add rpmlint action to lint spec files (#6)
Browse files Browse the repository at this point in the history
Performs rpmlint on all spec files in the repository
  • Loading branch information
EyeCantCU authored Dec 20, 2023
1 parent ac1875f commit 73fd953
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/rpmlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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 }}

0 comments on commit 73fd953

Please sign in to comment.