diff --git a/.github/workflows/composer-compatibility.yml b/.github/workflows/composer-compatibility.yml index e19c35340..684a61f10 100644 --- a/.github/workflows/composer-compatibility.yml +++ b/.github/workflows/composer-compatibility.yml @@ -68,9 +68,11 @@ on: permissions: contents: read +# Supersede stale PR runs only: main runs are the only rust-cache writers +# (save-if), so push and dispatch runs are never cancelled mid-save. concurrency: group: composer-compat-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: SOCKET_NO_CONFIG: '1'