Files
ResInsight/.github/workflows/spell-check.yml
Magne Sjaastad 10ecec9fb2 Use ubuntu-26.04 runners in all GitHub workflows
Install clang-19 from the Ubuntu archive, as apt.llvm.org has no LLVM 19 repository for 26.04.
2026-09-28 09:22:46 +02:00

43 lines
997 B
YAML

name: Spell Check
on:
schedule:
- cron: '0 2 * * *' # Run daily at 2 AM UTC
workflow_dispatch: # Allow manual triggering
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install codespell
run: pip install codespell
- name: Run codespell and apply fixes
run: |
codespell \
--write-changes \
ApplicationExeCode/ \
ApplicationLibCode/ \
Fwk/AppFwk/ \
GrpcInterface/ \
|| true
- uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Fixes by codespell"
title: "Typos fix by codespell"
branch: spell-check-patches
branch-suffix: random