|
53 | 53 | HEADREF: ${{ steps.pr_info.outputs.headRef }} |
54 | 54 | PRNUMBER: ${{ steps.pr_info.outputs.prNumber }} |
55 | 55 | run: | |
56 | | - echo "PR number: ${{ env.PRNUMBER }}" |
57 | | - echo "Head Ref: ${{ env.HEADREF }}" |
58 | | - echo "Head Repo Full Name: ${{ env.HEADREPOFULLNAME }}" |
| 56 | + echo "PR number: $PRNUMBER" |
| 57 | + echo "Head Ref: $HEADREF" |
| 58 | + echo "Head Repo Full Name: $HEADREPOFULLNAME" |
59 | 59 |
|
60 | 60 | - name: Set up Python |
61 | 61 | uses: actions/setup-python@v4 |
@@ -89,20 +89,20 @@ jobs: |
89 | 89 | PRNUMBER: ${{ steps.pr_info.outputs.prNumber }} |
90 | 90 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
91 | 91 | run: | |
92 | | - echo "HEADREPOFULLNAME: ${{ env.HEADREPOFULLNAME }}, HEADREF: ${{ env.HEADREF }}" |
| 92 | + echo "HEADREPOFULLNAME: $HEADREPOFULLNAME, HEADREF: $HEADREF" |
93 | 93 | # Configure git with the Actions bot user |
94 | 94 | git config user.name "github-actions[bot]" |
95 | 95 | git config user.email "github-actions[bot]@users.noreply.github.com" |
96 | 96 |
|
97 | 97 | # Make sure your 'origin' remote is set to the contributor's fork |
98 | | - git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ env.HEADREPOFULLNAME }}.git" |
| 98 | + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$HEADREPOFULLNAME.git" |
99 | 99 |
|
100 | 100 | # If there are changes after running style/quality, commit them |
101 | 101 | if [ -n "$(git status --porcelain)" ]; then |
102 | 102 | git add . |
103 | 103 | git commit -m "Apply style fixes" |
104 | 104 | # Push to the original contributor's forked branch |
105 | | - git push origin HEAD:${{ env.HEADREF }} |
| 105 | + git push origin HEAD:$HEADREF |
106 | 106 | echo "changes_pushed=true" >> $GITHUB_OUTPUT |
107 | 107 | else |
108 | 108 | echo "No changes to commit." |
|
0 commit comments