From 9b3db9c3ac3f4615ada73f027e252ec746bce5cb Mon Sep 17 00:00:00 2001 From: ArtikusHG <24320212+ArtikusHG@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:26:27 +0000 Subject: [PATCH] feat: add just syntax checker (#194) * feat: add just syntax checker * fix: create empty file to pass just syntax check * fix: use relative path to pass just syntax check * fix: justfiles cannot be empty to pass the syntax check * fix: format justfiles * docs: 100-bling.just explain purpose --------- Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com> --- .github/workflows/build.yml | 3 +++ config/files/usr/share/ublue-os/just/100-bling.just | 2 ++ config/files/usr/share/ublue-os/just/60-custom.just | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 config/files/usr/share/ublue-os/just/100-bling.just diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b428c6e9d7..01767d0491 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,6 +54,9 @@ jobs: - name: Checkout Push to Registry action uses: actions/checkout@v4 + - name: Check just syntax + uses: ublue-os/just-action@v1 + - name: Add yq (for reading recipe.yml) uses: mikefarah/yq@v4.40.2 diff --git a/config/files/usr/share/ublue-os/just/100-bling.just b/config/files/usr/share/ublue-os/just/100-bling.just new file mode 100644 index 0000000000..9e3a89ba4b --- /dev/null +++ b/config/files/usr/share/ublue-os/just/100-bling.just @@ -0,0 +1,2 @@ +# this file is a placeholder, +# making changes here is not supported diff --git a/config/files/usr/share/ublue-os/just/60-custom.just b/config/files/usr/share/ublue-os/just/60-custom.just index f1dd14804d..bd38c97020 100644 --- a/config/files/usr/share/ublue-os/just/60-custom.just +++ b/config/files/usr/share/ublue-os/just/60-custom.just @@ -1,3 +1,2 @@ -!include /usr/share/ublue-os/just/100-bling.just - +!include 100-bling.just # Include some of your custom scripts here!