From bc1965a1093141b348793a1f0f93e6046e4e4d3c Mon Sep 17 00:00:00 2001 From: Xiao Xufeng Date: Tue, 18 Feb 2025 16:26:08 +0800 Subject: [PATCH] ci(all): upload support status when pushed go github --- .gitlab/ci/post_deploy.yml | 11 +++++++++++ .gitlab/ci/rules.yml | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/.gitlab/ci/post_deploy.yml b/.gitlab/ci/post_deploy.yml index fe1ea90f83..efa91f44eb 100644 --- a/.gitlab/ci/post_deploy.yml +++ b/.gitlab/ci/post_deploy.yml @@ -11,3 +11,14 @@ generate_failed_jobs_report: - job_report.html script: - python tools/ci/dynamic_pipelines/scripts/generate_report.py --report-type job + +sync_support_status: + stage: post_deploy + extends: + - .rules:sync_support_status + needs: + - push_to_github + image: $ESP_ENV_IMAGE + tags: [ brew, github_sync ] + script: + - curl --fail --request POST --form token="$IDF_STATUS_TRIG_TOKEN" --form ref="$IDF_STATUS_BRANCH" --form "variables[UPLOAD_TO_S3]=true" "$IDF_STATUS_TRIG_URL" diff --git a/.gitlab/ci/rules.yml b/.gitlab/ci/rules.yml index 84b71c70f6..1cefa532cc 100644 --- a/.gitlab/ci/rules.yml +++ b/.gitlab/ci/rules.yml @@ -168,6 +168,9 @@ .if-ref-master: &if-ref-master if: '$CI_COMMIT_REF_NAME == "master"' +.if-ref-master-no_label: &if-ref-master-no_label + if: '$CI_COMMIT_REF_NAME == "master" && $BOT_TRIGGER_WITH_LABEL == null' + .if-tag-release: &if-tag-release if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/' @@ -219,6 +222,11 @@ when: never - <<: *if-protected-no_label +# Not uploading on release branches +.rules:sync_support_status: + rules: + - <<: *if-ref-master-no_label + .rules:protected-no_label-always: rules: - <<: *if-qa-test-tag