@@ -125,7 +125,9 @@ jobs:
125
125
ext %in% c("R", "Rmd", "Rnw", "Rmarkdown", "qmd")
126
126
}
127
127
changed_r_files <- Filter(is_r_file, changed_files)
128
- dry <- if(isTRUE(as.logical("${{ inputs.auto-update }}"))) "off" else "on"
128
+ # TODO: Re-enable after styler unicode issues are fixed
129
+ #dry <- if(isTRUE(as.logical("${{ inputs.auto-update }}"))) "off" else "on"
130
+ dry <- "on"
129
131
detect <- styler::style_file(changed_r_files, dry = dry)
130
132
if (TRUE %in% detect$changed) {
131
133
problems <- subset(detect$file, detect$changed == T)
@@ -153,23 +155,24 @@ jobs:
153
155
echo "unstyled-files=$(cat /tmp/style-problems.txt)" >> $GITHUB_OUTPUT
154
156
shell : bash
155
157
156
- - name : Autocommit styled files ↗️
157
- id : autocommit-styled-files
158
- if : >
159
- inputs.auto-update
160
- && steps.check_files.outputs.files_exists == 'true'
161
- run : |
162
- git config --global user.name 'github-actions'
163
- git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
164
- git config pull.rebase false
165
- git pull origin ${{ steps.branch-name.outputs.head_ref_branch }} || true
166
- git add ${{ steps.problem-files.outputs.unstyled-files }}
167
- git commit -m '[skip style] [skip vbump] Restyle files'
168
- git push -v origin HEAD:${{ steps.branch-name.outputs.head_ref_branch }} || \
169
- echo "⚠️ Could not push to ${BRANCH_NAME} on $(git remote -v show -n origin | grep Push)"
170
- shell : bash
171
- working-directory : ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
172
- continue-on-error : true
158
+ # TODO: Re-enable after styler unicode issues are fixed
159
+ # - name: Autocommit styled files ↗️
160
+ # id: autocommit-styled-files
161
+ # if: >
162
+ # inputs.auto-update
163
+ # && steps.check_files.outputs.files_exists == 'true'
164
+ # run: |
165
+ # git config --global user.name 'github-actions'
166
+ # git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
167
+ # git config pull.rebase false
168
+ # git pull origin ${{ steps.branch-name.outputs.head_ref_branch }} || true
169
+ # git add ${{ steps.problem-files.outputs.unstyled-files }}
170
+ # git commit -m '[skip style] [skip vbump] Restyle files'
171
+ # git push -v origin HEAD:${{ steps.branch-name.outputs.head_ref_branch }} || \
172
+ # echo "⚠️ Could not push to ${BRANCH_NAME} on $(git remote -v show -n origin | grep Push)"
173
+ # shell: bash
174
+ # working-directory: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
175
+ # continue-on-error: true
173
176
174
177
- name : Styler check summary 🅾
175
178
if : >
0 commit comments