Skip to content

Commit 22ae31c

Browse files
Cherry pick PR #8564: [CI] Add branch name label to test invocation (#8573)
Refer to the original PR: #8564 This change modifies the GitHub Actions workflows for internal and on-device tests. It adds the current Git branch name as a label to the test invocation command for Sponge. Bug: 474168791 Co-authored-by: Igor Sarkisov <isarkisov@google.com>
1 parent b6422a6 commit 22ae31c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/actions/e2e_tests/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ runs:
7878
--label repository-${GITHUB_REPO} \
7979
--label author-${GITHUB_PR_HEAD_USER_LOGIN:-$GITHUB_COMMIT_AUTHOR_USERNAME} \
8080
--label author_id-${GITHUB_PR_HEAD_USER_ID:-$GITHUB_COMMIT_AUTHOR_EMAIL} \
81+
--label branch:${GITHUB_REF_NAME} \
8182
--dimensions '${{ inputs.test_dimensions }}' \
8283
--cobalt_path "${GCS_ARTIFACTS_PATH}" || {
8384
echo "Finished running tests..."

.github/actions/on_device_tests/action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ runs:
8787
--label repository-${GITHUB_REPO} \
8888
--label author-${GITHUB_PR_HEAD_USER_LOGIN:-$GITHUB_COMMIT_AUTHOR_USERNAME} \
8989
--label author_id-${GITHUB_PR_HEAD_USER_ID:-$GITHUB_COMMIT_AUTHOR_EMAIL} \
90+
--label branch:${GITHUB_REF_NAME} \
9091
--dimensions '${{ inputs.test_dimensions }}' \
9192
${TEST_ATTEMPTS:+"--test_attempts" "$TEST_ATTEMPTS"} \
9293
--gcs_archive_path "${GCS_ARTIFACTS_PATH}" \

0 commit comments

Comments
 (0)