Skip to content

Update ubuntu Docker tag to v24 #10

Update ubuntu Docker tag to v24

Update ubuntu Docker tag to v24 #10

Workflow file for this run

name: 🚥 Codespell
# Workflow to check spelling errors on the changed files within the current pull request.
#
# The previous version already did a complete check on the whole repository, therefore,
# we prefer only to check the added/changed files for spelling errors.
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🔸 Get Changed Files from Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# get file names and separate them with space ' '
#files=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | xargs -I {} sh -c "echo \'./{}\'" | tr '\n' ' ')
gh api '/repos/gdha/www.it3.be/git/trees/master?recursive=true' -q '.tree[]|.path' | xargs -I {} sh -c 'echo ./{}' | sort >./full
echo "EXCLUDE_FILE=./full" >> "$GITHUB_ENV"
- name: 🔸 Output the Exclude File
run: cat ${{ env.EXCLUDE_FILE }}
- name: 🔸 Check for Spelling Errors for Changed Files
uses: codespell-project/actions-codespell@v2
with:
check_filenames: true
check_hidden: true
ignore_words_file: .codespellignore
skip: .git,./renovate.json,./LICENSE,*.js,*.pdf,*.html,*.yml,./full
exclude_file: ${{ env.EXCLUDE_FILE }}
#path: ${{ env.CHANGED_FILES }}