From f60af11dcacf71228eb097de99d1a7d679a3371d Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:42:36 +0100 Subject: [PATCH] feat(apbx): validate YAML first --- .github/workflows/apbx.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/apbx.yaml b/.github/workflows/apbx.yaml index 463c28b957..51fce75cdd 100644 --- a/.github/workflows/apbx.yaml +++ b/.github/workflows/apbx.yaml @@ -3,8 +3,9 @@ name: Create and Validate Atlas Playbook on: push: paths: - - "src/**" - - ".github/workflows/apbx.yaml" + - "src/playbook/**" + - "**/*.yaml" + - "**/*.yml" env: SXSC_REPO: "https://github.com/Atlas-OS/sxsc" @@ -20,6 +21,9 @@ jobs: ref: ${{ github.ref }} token: ${{ secrets.RUNNER_SECRET }} + - name: Validate YAML files + run: 'yamllint -d "{extends: relaxed, rules: {empty-lines: disable, line-length: disable, new-line-at-end-of-file: disable, trailing-spaces: disable, new-lines: {type: platform}}}" .' + - name: Get changed files id: changed-files uses: tj-actions/changed-files@v41.0.0 @@ -106,9 +110,6 @@ jobs: working-directory: src\playbook\Executables\AtlasModules\Packages if: env.runSxsc == 'true' - - name: Validate YAML files - run: 'yamllint -d "{extends: relaxed, rules: {empty-lines: disable, line-length: disable, new-line-at-end-of-file: disable, trailing-spaces: disable, new-lines: {type: platform}}}" .' - - name: Create playbook (ZIP/APBX password is malte) id: create-pb if: ${{ !startsWith(github.ref, 'refs/heads/na-') }}