From bba8c4c0d436a85193e9f0e402c13c71b7ed2dc0 Mon Sep 17 00:00:00 2001 From: Simon Alibert <75076266+aliberts@users.noreply.github.com> Date: Thu, 27 Feb 2025 13:09:12 +0100 Subject: [PATCH] Fix pr_style bot (#782) --- .github/workflows/pr_style_bot.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr_style_bot.yml b/.github/workflows/pr_style_bot.yml index e0a5c7742..f62f10c8c 100644 --- a/.github/workflows/pr_style_bot.yml +++ b/.github/workflows/pr_style_bot.yml @@ -55,9 +55,9 @@ jobs: HEADREF: ${{ steps.pr_info.outputs.headRef }} PRNUMBER: ${{ steps.pr_info.outputs.prNumber }} run: | - echo "PR number: $PRNUMBER" - echo "Head Ref: $HEADREF" - echo "Head Repo Full Name: $HEADREPOFULLNAME" + echo "PR number: ${PRNUMBER}" + echo "Head Ref: ${HEADREF}" + echo "Head Repo Full Name: ${HEADREPOFULLNAME}" - name: Set up Python uses: actions/setup-python@v4 @@ -87,20 +87,20 @@ jobs: PRNUMBER: ${{ steps.pr_info.outputs.prNumber }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "HEADREPOFULLNAME: $HEADREPOFULLNAME, HEADREF: $HEADREF" + echo "HEADREPOFULLNAME: ${HEADREPOFULLNAME}, HEADREF: ${HEADREF}" # Configure git with the Actions bot user git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" # Make sure your 'origin' remote is set to the contributor's fork - git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$HEADREPOFULLNAME.git" + git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${HEADREPOFULLNAME}.git" # If there are changes after running style/quality, commit them if [ -n "$(git status --porcelain)" ]; then git add . git commit -m "Apply style fixes" # Push to the original contributor's forked branch - git push origin HEAD:$HEADREF + git push origin HEAD:${HEADREF} echo "changes_pushed=true" >> $GITHUB_OUTPUT else echo "No changes to commit."