Limit to one concurrent on staging
Limit to one concurrent run on staging and in the same time allow multiple on other branches.
Besides, that cancel concurrent IF they're NOT in the staging.
@@ -268,7 +268,9 @@ jobs:
- filter-changes
- dockerpush
timeout-minutes: 90
- concurrency: ${{ github.workflow }}-${{ github.ref }}
+ concurrency:
+ group: ${{ github.base_ref == 'staging' && format('{0}-staging', github.workflow) || format('{0}-{1}', github.workflow, github.ref) }}
+ cancel-in-progress: ${{ github.base_ref == 'staging' && false || true }}
steps:
- uses: actions/checkout@v3
