From f1ea0ca78e29d0559ab34e743cd3a83121db90c5 Mon Sep 17 00:00:00 2001 From: zenobit Date: Tue, 8 Oct 2024 02:28:36 +0200 Subject: [PATCH] Add themes counting --- .github/workflows/jekyll-gh-pages.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e31d81c..59bc8d1 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -22,6 +22,20 @@ concurrency: cancel-in-progress: false jobs: + count: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Count themes + run: | + THEMES_NUMBER=$(ls ./themes/ | wc -l) + echo "Themes counted: $THEMES_NUMBER" + echo "THEMES_NUMBER=$THEMES_NUMBER" >> $GITHUB_ENV + - name: Export one variable + uses: UnlyEd/github-action-store-variable@v2.1.0 + with: + variables: THEMES_NUMBER="$THEMES_NUMBER" # Build job build: runs-on: ubuntu-latest