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