for cron example, check if file is read permissions available on file #49
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: Pull Request Checks | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
spellcheck: | |
name: Spellcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
name: Checkout | |
- id: changed_files | |
name: Changed Files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
**.mdx | |
- name: List all changed files | |
env: | |
ALL_CHANGED_FILES: ${{ steps.changed_files.outputs.all_changed_files }} | |
run: | | |
for file in ${ALL_CHANGED_FILES}; do | |
echo "$file was changed" | |
done | |
- uses: rojopolis/[email protected] | |
name: Spellcheck | |
if: ${{ steps.changed_files.outputs.all_changed_files }} | |
with: | |
config_path: spellcheck.yaml | |
source_files: ${{ steps.changed_files.outputs.all_changed_files }} | |
task_name: Markdown |