feat(ci): Add rpmlint action to lint spec files #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') }} |