Skip to content

Commit

Permalink
update style workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dpprdan committed Jan 19, 2023
1 parent c44cfb0 commit 4a8d1ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
paths: ["**.[rR]", "**.[qrR]md", "**.[rR]markdown", "**.[rR]nw"]
paths: ["**.[rR]", "**.[qrR]md", "**.[rR]markdown", "**.[rR]nw", , "**.[rR]profile"]

name: Style

Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
${{ runner.os }}-
- name: Style
run: styler::style_pkg(filetype = c(".R", ".Rmd", ".Rmarkdown", ".Rnw"))
run: styler::style_pkg()
shell: Rscript {0}

- name: Commit and push changes
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add R/\*
git add \*.[rR] \*.[qrR]md \*.[rR]markdown \*.[rR]nw \*.[rR]profile
git commit -m "Style code" || echo "No changes to commit"
git pull --ff-only
git push origin

0 comments on commit 4a8d1ee

Please sign in to comment.