Skip to content

Commit ad4953a

Browse files
authored
Disable auto-commits
Disable auto commits until the unicode styling issues have been fixed. Signed-off-by: cicdguy <[email protected]>
1 parent 8c74959 commit ad4953a

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

.github/workflows/style.yaml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ jobs:
125125
ext %in% c("R", "Rmd", "Rnw", "Rmarkdown", "qmd")
126126
}
127127
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"
129131
detect <- styler::style_file(changed_r_files, dry = dry)
130132
if (TRUE %in% detect$changed) {
131133
problems <- subset(detect$file, detect$changed == T)
@@ -153,23 +155,24 @@ jobs:
153155
echo "unstyled-files=$(cat /tmp/style-problems.txt)" >> $GITHUB_OUTPUT
154156
shell: bash
155157

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
173176

174177
- name: Styler check summary 🅾
175178
if: >

0 commit comments

Comments
 (0)