diff --git a/.github/workflows/kata-pr-init.yml b/.github/workflows/kata-pr-init.yml index 52397f9bf..46475293c 100644 --- a/.github/workflows/kata-pr-init.yml +++ b/.github/workflows/kata-pr-init.yml @@ -58,6 +58,14 @@ jobs: echo "- [$title]($(basename "$d") \"$id\")" done > "$base_dir/index.md" + - name: Update statistics + run: | + STATS="|" + for rank in ./kata/*; do + STATS+=" $(find $rank -mindepth 1 -maxdepth 1 -not -empty -type d | wc -l) |" + done + sed -i "28s/.*/$STATS/" ./docs/README.md + - name: Commit changes id: git env: diff --git a/.github/workflows/sync-progress.yml b/.github/workflows/sync-progress.yml index 17a4e3c0e..3d9702c49 100644 --- a/.github/workflows/sync-progress.yml +++ b/.github/workflows/sync-progress.yml @@ -27,14 +27,6 @@ jobs: run: | sed -i -r "s/(completed%20kata-).*(%25-red.svg)/\1$PERCENT\2/g" ./docs/README.md - - name: Update statistics - run: | - STATS="|" - for rank in ./kata/*; do - STATS+=" $(find $rank -mindepth 1 -maxdepth 1 -not -empty -type d | wc -l) |" - done - sed -i "28s/.*/$STATS/" ./docs/README.md - - name: Commit changes run: | git add -A