Update changed files action #955
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Spelling 🆎 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
branches: | |
- main | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
package-subdirectory: | |
description: Subdirectory in the repository, where the R package is located. | |
required: false | |
type: string | |
default: "." | |
concurrency: | |
group: spelling-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
spelling: | |
name: Check spelling 🔠 | |
runs-on: ubuntu-latest | |
if: > | |
!contains(github.event.commits[0].message, '[skip spelling]') | |
&& github.event.pull_request.draft == false | |
container: | |
image: ghcr.io/insightsengineering/rstudio_4.3.1_bioc_3.17:latest | |
steps: | |
- name: Checkout Code 🛎 | |
uses: actions/checkout@v3 | |
- name: Normalize variables 📏 | |
run: | | |
package_subdirectory_input="${{ inputs.package-subdirectory }}" | |
echo "package_subdirectory=${package_subdirectory_input:-.}" >> $GITHUB_ENV | |
shell: bash | |
- name: Run Spellcheck 👟 | |
uses: insightsengineering/r-spellcheck-action@v2 | |
with: | |
exclude: inst/extdata/* | |
path: ${{ env.package_subdirectory }} |