diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 31bcf6a..a5ff2ce 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -35,7 +35,12 @@ jobs: else echo "changes_detected=false" >> $GITHUB_OUTPUT fi - + + - name: Checkout PR branch + if: steps.check_changes.outputs.changes_detected == 'true' + run: | + git checkout ${{ github.head_ref }} + - name: Commit Changes if: steps.check_changes.outputs.changes_detected == 'true' run: |