Skip to content

Commit

Permalink
fix: cleanup rpmlint workflow (#7)
Browse files Browse the repository at this point in the history
* chore: cleanup rpmlint workflow

* Run rpmlint on all spec files

* Only run on changes to spec files and rpmlint action
  • Loading branch information
p5 authored Dec 20, 2023
1 parent eddf7a6 commit 4119c1c
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .github/workflows/rpmlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,28 @@ on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
paths:
- '**.spec'
- '.github/workflows/rpmlint.yml'
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.txt'
paths:
- '**.spec'
- '.github/workflows/rpmlint.yml'
merge_group:
workflow_dispatch:

jobs:
push-ghcr:
name: rpmlint
rpmlint:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
steps:
- name: Perform checkout
- name: 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 }}
rpmfiles: .

0 comments on commit 4119c1c

Please sign in to comment.