Skip to content

Commit

Permalink
feat: check just syntax in build action (fix #152) (#155)
Browse files Browse the repository at this point in the history
* feat: check just syntax in build action

* fix: only check just syntax for .just files

---------

Co-authored-by: Kyle Gospodnetich <[email protected]>
  • Loading branch information
ArtikusHG and KyleGospo authored Nov 19, 2023
1 parent 9c84ce3 commit ac88b3a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ jobs:
fi
echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT
- name: Install just
id: install_just
uses: extractions/setup-just@v1

- name: Check just syntax
id: check_just_syntax
shell: bash
run: |
for file in build/ublue-os-just/*.just; do
if [ -f "$file" ]; then
echo $file
just --fmt --check --unstable -f $file || { exit 1; }
fi
done
# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down

0 comments on commit ac88b3a

Please sign in to comment.