Skip to content

Commit

Permalink
Improve CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Oct 26, 2023
1 parent 7ad3670 commit aa5f1ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

jobs:
Perfecto:
permissions:
contents: read
pull-requests: write
strategy:
matrix:
image: [ 'ol7', 'ol8', 'ol9']
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/perfecto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
Perfecto:
name: Perfecto (${{github.event.inputs.image}})
name: Perfecto (${{inputs.image}})
runs-on: ubuntu-latest

steps:
Expand All @@ -26,7 +26,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run Perfecto docker image
uses: docker://ghcr.io/essentialkaos/perfecto:${{github.event.inputs.image}}
uses: docker://ghcr.io/essentialkaos/perfecto:${{inputs.image}}
with:
args: --version

Expand All @@ -37,5 +37,5 @@ jobs:
- name: Run Perfecto check
env:
IMAGE: ghcr.io/essentialkaos/perfecto:${{github.event.inputs.image}}
IMAGE: ghcr.io/essentialkaos/perfecto:${{inputs.image}}
run: ./perfecto-container -A PF20 $(git diff --name-status origin/master | tr '\t' ' ' | grep -Ev '(^D| tests/)' | grep '\.spec' | rev | cut -f1 -d' ' | rev | sort)

0 comments on commit aa5f1ca

Please sign in to comment.