@@ -49,23 +49,31 @@ jobs:
4949 - name : Save push event job info
5050 # Dump the job information for running CI with a new commit on main branch.
5151 if : ${{ github.event_name == 'push' }}
52+ env :
53+ GITHUB_REF_ENV : ${{ github.ref }}
54+ GITHUB_REPO_ENV : ${{ github.repository }}
5255 run : |
53- echo "Ref: ${{ github.ref }} "
54- echo "Repo: ${{ github.repository }} "
55- echo "${{ github.ref }} " > job_info/ref.txt
56- echo "${{ github.repository }} " > job_info/repo.txt
56+ echo "Ref: \"$GITHUB_REF_ENV\" "
57+ echo "Repo: \"$GITHUB_REPO_ENV\" "
58+ echo "$GITHUB_REF_ENV " > job_info/ref.txt
59+ echo "$GITHUB_REPO_ENV " > job_info/repo.txt
5760 - name : Save pull request event job info
5861 # Dump the job information for running CI with a pull request.
5962 if : ${{ github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }}
63+ env :
64+ REF_ENV : ${{ github.event.pull_request.head.ref }}
65+ REPO_ENV : ${{ github.event.pull_request.head.repo.full_name }}
66+ NUMBER_ENV : ${{ github.event.number }}
67+ SHA_ENV : ${{ github.event.pull_request.head.sha }}
6068 run : |
61- echo "Ref: ${{ github.event.pull_request.head.ref }} "
62- echo "FullName: ${{ github.event.pull_request.head.repo.full_name }} "
63- echo "Number: ${{ github.event.number }} "
64- echo "HeadSHA: ${{ github.event.pull_request.head.sha }} "
65- echo "${{ github.event.pull_request.head.ref }} " > job_info/ref.txt
66- echo "${{ github.event.pull_request.head.repo.full_name }} " > job_info/repo.txt
67- echo "${{ github.event.number }} " > job_info/pr.txt
68- echo "${{ github.event.pull_request.head.sha }} " > job_info/sha.txt
69+ echo "Ref: \"$REF_ENV\" "
70+ echo "FullName: \"$REPO_ENV\" "
71+ echo "Number: \"$NUMBER_ENV\" "
72+ echo "HeadSHA: \"$SHA_ENV\" "
73+ echo "$REF_ENV " > job_info/ref.txt
74+ echo "$REPO_ENV " > job_info/repo.txt
75+ echo "$NUMBER_ENV " > job_info/pr.txt
76+ echo "$SHA_ENV " > job_info/sha.txt
6977 - name : Upload artifact
7078 uses : actions/upload-artifact@v4
7179 with :
0 commit comments