Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Aug 1, 2023
1 parent e5cedb2 commit 8f8aef3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ jobs:
run: |
git config --global --add safe.directory $(pwd)
- name: Clean up WORDLIST 🧼
run: |
x <- readLines('inst/WORDLIST')
file.remove('inst/WORDLIST')
spelling::update_wordlist(confirm = FALSE)
y <- readLines('inst/WORDLIST')
if (length(setdiff(y, x)) == 0 && length(setdiff(x, y)) > 0) {
Sys.sleep(1)
message("Unnecessary entries on WORDLIST:")
message(cat(setdiff(x, y), sep='\n'))
}
shell: Rscript {0}

- name: Commit and push changes 📌
if: github.event_name == 'push'
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,21 +123,6 @@ jobs:
python -m pip -q install pre-commit
pre-commit autoupdate
- name: Clean up WORDLIST 🧼
run: |
install.packages("spelling")
x <- readLines('inst/WORDLIST')
file.copy("inst/WORDLIST", "inst/WORDLIST.copy")
file.remove('inst/WORDLIST')
spelling::update_wordlist(confirm = FALSE)
y <- readLines('inst/WORDLIST')
if (length(setdiff(y, x)) == 0 && length(setdiff(x, y)) > 0) {
Sys.sleep(1)
message("Unnecessary entries on WORDLIST:")
message(cat(setdiff(x, y), sep='\n'))
}
shell: Rscript {0}

- name: Checkout to main 🛎
if: ${{ inputs.vbump-after-release == true }}
run: |
Expand Down

0 comments on commit 8f8aef3

Please sign in to comment.