Skip to content

Commit

Permalink
feat(apbx): validate YAML first
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jun 7, 2024
1 parent 8a4d96f commit f60af11
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/apbx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/[email protected]
Expand Down Expand Up @@ -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-') }}
Expand Down

0 comments on commit f60af11

Please sign in to comment.