From 6c2dcdc78d846ad16f6d193264241675b8ea282c Mon Sep 17 00:00:00 2001 From: yjf2002ghty <47345902+yjf2002ghty@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:55:00 +0800 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 32254ee0..34e973d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,3 +24,17 @@ jobs: run: | echo "Source Branch: ${{ github.event.pull_request.head.ref }}" echo "Target Branch: ${{ github.event.pull_request.base.ref }}" + + - name: Print source repository URL and branch name + run: | + source_repo_url="${GITHUB_SERVER_URL}/${github.event.pull_request.head.repo.full_name}" + source_branch="${github.event.pull_request.head.ref}" + echo "Source Repository URL: $source_repo_url" + echo "Source Branch: $source_branch" + + - name: Print target repository URL and branch name + run: | + target_repo_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}" + target_branch="${github.event.pull_request.base.ref}" + echo "Target Repository URL: $target_repo_url" + echo "Target Branch: $target_branch"