diff --git a/.github/config/exclude.txt b/.github/config/exclude.txt new file mode 100644 index 0000000..a873322 --- /dev/null +++ b/.github/config/exclude.txt @@ -0,0 +1,2 @@ +# gitignore style exclude file for the GrantBirki/json-yaml-validate Action +.github/ diff --git a/.github/workflows/json-yaml-validate.yml b/.github/workflows/json-yaml-validate.yml new file mode 100644 index 0000000..bd7457c --- /dev/null +++ b/.github/workflows/json-yaml-validate.yml @@ -0,0 +1,23 @@ +name: actions-config-validation +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +permissions: + contents: read + pull-requests: write # enable write permissions for pull request comments + +jobs: + actions-config-validation: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: actions-config-validation + uses: GrantBirki/json-yaml-validate@3add42f5fa8bfff04a3fe664d27a316736257ef1 # pin@v2.3.1 + with: + comment: "true" # enable comment mode + exclude_file: ".github/config/exclude.txt"