diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0527344169f278..1a9a3a27d77df44 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,8 @@ on: [push, workflow_dispatch] concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ !contains(github.ref, 'production')}} jobs: publish: