Skip to content

Commit

Permalink
ci: Make the check job run always
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Nov 7, 2024
1 parent cf25e62 commit cd45c02
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
changes:
runs-on: ubuntu-latest
timeout-minutes: 60
if: always()
permissions:
pull-requests: read
outputs:
Expand Down Expand Up @@ -49,20 +50,28 @@ jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 60
if: always()
needs: changes
if: |
needs.changes.outputs.exceptions == 'false' &&
needs.changes.outputs.exceptions == 'false' &&
needs.changes.outputs.src-extra == 'false' &&
needs.changes.outputs.docker == 'false'
steps:
- name: Check
run: echo "No filter matched. Perhaps this file is not covered by CI" && exit 1
run: |
if ${{
needs.changes.outputs.exceptions == 'false' &&
needs.changes.outputs.src == 'false' &&
needs.changes.outputs.src-extra == 'false' &&
needs.changes.outputs.docker == 'false'
}}; then
echo "No filter matched. This file is not covered by CI" && exit 1
else
echo "Found matching file"
fi
exceptions:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: changes
needs:
- changes
- check
if: ${{ needs.changes.outputs.exceptions == 'true' }}
steps:
- uses: actions/checkout@v4
Expand All @@ -77,7 +86,9 @@ jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: changes
needs:
- changes
- check
if: ${{ needs.changes.outputs.src == 'true' || needs.changes.outputs.src-extra == 'true' }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -198,6 +209,7 @@ jobs:
packages: write
needs:
- changes
- check
- ci
if: ${{ needs.changes.outputs.docker == 'true' && github.event_name != 'pull_request' && github.repository == 'flathub-infra/flatpak-builder-lint' && github.ref == 'refs/heads/master' }}
uses: ./.github/workflows/docker.yml
Expand Down

0 comments on commit cd45c02

Please sign in to comment.