Explorar o código

Merge branch 'bugfix/github_jira_sync_races' into 'master'

ci: limit github-jira sync actions to a single concurrent run

See merge request espressif/esp-idf!16699
Zim Kalinowski %!s(int64=4) %!d(string=hai) anos
pai
achega
0ce3249cce

+ 4 - 0
.github/workflows/issue_comment.yml

@@ -3,6 +3,10 @@ name: Sync issue comments to JIRA
 # This workflow will be triggered when new issue comment is created (including PR comments)
 on: issue_comment
 
+# Limit to single concurrent run for workflows which can create Jira issues.
+# Same concurrency group is used in new_issues.yml
+concurrency: jira_issues
+
 jobs:
   sync_issue_comments_to_jira:
     name: Sync Issue Comments to Jira

+ 4 - 0
.github/workflows/new_issues.yml

@@ -3,6 +3,10 @@ name: Sync issues to Jira
 # This workflow will be triggered when a new issue is opened
 on: issues
 
+# Limit to single concurrent run for workflows which can create Jira issues.
+# Same concurrency group is used in issue_comment.yml
+concurrency: jira_issues
+
 jobs:
   sync_issues_to_jira:
     name: Sync issues to Jira

+ 4 - 0
.github/workflows/new_prs.yml

@@ -6,6 +6,10 @@ on:
   schedule:
     - cron: "0 * * * *"
 
+# Limit to single concurrent run for workflows which can create Jira issues.
+# Same concurrency group is used in issue_comment.yml
+concurrency: jira_issues
+
 jobs:
   sync_prs_to_jira:
     name: Sync PRs to Jira

+ 1 - 0
.gitlab/CODEOWNERS

@@ -47,6 +47,7 @@
 * @esp-idf-codeowners/other
 
 /.*                                   @esp-idf-codeowners/tools
+/.github/workflows/                   @esp-idf-codeowners/ci
 /.gitlab-ci.yml                       @esp-idf-codeowners/ci
 /.gitlab/ci/                          @esp-idf-codeowners/ci
 /.pre-commit-config.yaml              @esp-idf-codeowners/ci