diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 4572694a..68658663 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -125,7 +125,9 @@ jobs: ext %in% c("R", "Rmd", "Rnw", "Rmarkdown", "qmd") } changed_r_files <- Filter(is_r_file, changed_files) - dry <- if(isTRUE(as.logical("${{ inputs.auto-update }}"))) "off" else "on" + # TODO: Re-enable after styler unicode issues are fixed + #dry <- if(isTRUE(as.logical("${{ inputs.auto-update }}"))) "off" else "on" + dry <- "on" detect <- styler::style_file(changed_r_files, dry = dry) if (TRUE %in% detect$changed) { problems <- subset(detect$file, detect$changed == T) @@ -153,23 +155,24 @@ jobs: echo "unstyled-files=$(cat /tmp/style-problems.txt)" >> $GITHUB_OUTPUT shell: bash - - name: Autocommit styled files ↗️ - id: autocommit-styled-files - if: > - inputs.auto-update - && steps.check_files.outputs.files_exists == 'true' - run: | - git config --global user.name 'github-actions' - git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' - git config pull.rebase false - git pull origin ${{ steps.branch-name.outputs.head_ref_branch }} || true - git add ${{ steps.problem-files.outputs.unstyled-files }} - git commit -m '[skip style] [skip vbump] Restyle files' - git push -v origin HEAD:${{ steps.branch-name.outputs.head_ref_branch }} || \ - echo "⚠️ Could not push to ${BRANCH_NAME} on $(git remote -v show -n origin | grep Push)" - shell: bash - working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} - continue-on-error: true + # TODO: Re-enable after styler unicode issues are fixed + #- name: Autocommit styled files ↗️ + # id: autocommit-styled-files + # if: > + # inputs.auto-update + # && steps.check_files.outputs.files_exists == 'true' + # run: | + # git config --global user.name 'github-actions' + # git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' + # git config pull.rebase false + # git pull origin ${{ steps.branch-name.outputs.head_ref_branch }} || true + # git add ${{ steps.problem-files.outputs.unstyled-files }} + # git commit -m '[skip style] [skip vbump] Restyle files' + # git push -v origin HEAD:${{ steps.branch-name.outputs.head_ref_branch }} || \ + # echo "⚠️ Could not push to ${BRANCH_NAME} on $(git remote -v show -n origin | grep Push)" + # shell: bash + # working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }} + # continue-on-error: true - name: Styler check summary 🅾 if: >