Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yjf2002ghty authored Nov 2, 2024
1 parent b36bbfd commit 6c2dcdc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6c2dcdc

Please sign in to comment.