MM-52712: Prevent CI cancellation in master (round 2) (#23293)

We discovered that cancel-in-progress only controls
in-progress jobs. Which means that pending jobs will _always_
be cancelled regardless. There is an open discussion:
https://github.com/orgs/community/discussions/5435
which was closed saying this is how the feature is designed.

We try to work around this by refactoring into separate reusable
workflows and having concurrency only for PR workflows.

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Agniva De Sarker
2023-05-09 23:49:06 +05:30
коммит произвёл GitHub
родитель 11b08edf94
Коммит 77a24f96d6
12 изменённых файлов: 114 добавлений и 40 удалений

2
.github/workflows/artifacts.yml поставляемый
Просмотреть файл

@@ -1,7 +1,7 @@
name: Artifacts generation and upload
on:
workflow_run:
workflows: ["Server CI"]
workflows: ["Server CI Master", "Server CI PR"]
types:
- completed