Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 27 additions & 7 deletions .github/workflows/validate-flatpak.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,46 @@
name: Validate Flatpak update

on:
# Runs on every PR so the required check always reports. A skipped build
# counts as passing, so PRs without package changes can still merge.
pull_request:
paths:
- .github/workflows/validate-flatpak.yml
- .github/workflows/publish-flatpak.yml
- flatpak/**
- '!flatpak/pages/**'
- patches/**
- tests/packaged/**
workflow_dispatch:

permissions:
contents: read
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changes:
name: Check for package changes
runs-on: ubuntu-24.04
outputs:
# Manual runs always build.
package: ${{ github.event_name == 'workflow_dispatch' || steps.filter.outputs.package }}
steps:
- name: Check changed files
id: filter
if: github.event_name == 'pull_request'
uses: dorny/paths-filter@v4
with:
predicate-quantifier: some-with-excludes
filters: |
package:
- .github/workflows/validate-flatpak.yml
- .github/workflows/publish-flatpak.yml
- flatpak/**
- '!flatpak/pages/**'
- patches/**
- tests/packaged/**

build:
name: Build and test Flatpak
needs: changes
if: needs.changes.outputs.package == 'true'
runs-on: ubuntu-24.04
timeout-minutes: 120
container:
Expand Down