Skip to content

Merge pull request #499 from xxxajk/master #445

Merge pull request #499 from xxxajk/master

Merge pull request #499 from xxxajk/master #445

name: Check keywords.txt
on:
pull_request:
paths:
- ".github/workflows/check-keywords-txt.yml"
- "megaavr/libraries/**"
push:
paths:
- ".github/workflows/check-keywords-txt.yml"
- "megaavr/libraries/**"
# workflow_dispatch event allows the workflow to be triggered manually
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
workflow_dispatch:
# repository_dispatch event allows the workflow to be triggered via the GitHub API
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
repository_dispatch:
jobs:
check-keywords-txt:
runs-on: ubuntu-latest
env:
ARDUINO_CI_SCRIPT_FOLDER_PATH: extras/ci/tools/arduino-ci-script
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install arduino-ci-script
uses: per1234/install-arduino-ci-script-action@main
with:
installation-path: ${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }}
- name: Check keywords.txt
run: |
source "${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }}/arduino-ci-script.sh"
# https://github.com/per1234/arduino-ci-script#check_keywords_txt-searchpath-maximumsearchdepth
check_keywords_txt "${GITHUB_WORKSPACE}/megaavr/libraries" 1