diff --git a/.github/workflows/build-gamescope.yml b/.github/workflows/build-gamescope.yml index b6ae5078d3..f18c9ad84e 100644 --- a/.github/workflows/build-gamescope.yml +++ b/.github/workflows/build-gamescope.yml @@ -7,15 +7,6 @@ on: - 'tools/gamescope/build-in-arch.sh' - 'tools/gamescope/patches/**' - 'tools/gamescope/runtime-sonames.txt' - - 'tools/gamescope/tests/**' - - '.github/workflows/build-gamescope.yml' - pull_request: - types: [opened, synchronize, reopened] - paths: - - 'tools/gamescope/build-in-arch.sh' - - 'tools/gamescope/patches/**' - - 'tools/gamescope/runtime-sonames.txt' - - 'tools/gamescope/tests/**' - '.github/workflows/build-gamescope.yml' workflow_dispatch: inputs: @@ -25,11 +16,11 @@ on: default: '' permissions: - contents: read + contents: write concurrency: group: ${{ inputs.tag && format('gamescope-tag-{0}', inputs.tag) || format('gamescope-{0}-{1}', github.event_name, github.ref) }} - cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }} + cancel-in-progress: ${{ github.event_name == 'push' }} jobs: build: