Skip to content

Commit

Permalink
Add themes counting
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Oct 8, 2024
1 parent f1c7ea1 commit f1ea0ca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
variables: THEMES_NUMBER="$THEMES_NUMBER"
# Build job
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f1ea0ca

Please sign in to comment.