From 5fd885c701683627ead42f4e705cf92c9eff24a5 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Tue, 31 Oct 2023 17:33:49 -0600 Subject: [PATCH] add GrantBirki/json-yaml-validate --- .github/config/exclude.txt | 2 ++ .github/workflows/json-yaml-validate.yml | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/config/exclude.txt create mode 100644 .github/workflows/json-yaml-validate.yml 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"