bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit f8dfbccb0c115d7bfa9fcb8fb63ac0df7c5cb2a2
parent 2e26361318228389a0c5c5b9620d92e1299e1779
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Thu, 14 May 2026 07:37:29 +0530

Add workflow to rename Semester folders to lowercase
Diffstat:
A.github/workflows/main.yml | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -0,0 +1,39 @@ +name: Lowercase Semester Folders + +on: + workflow_dispatch: # Run this manually from the Actions tab + +jobs: + rename-folders: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Rename Semester folders to lowercase + run: | + # Loop through numbers 1 to 8 + for i in {1..8} + do + old_name="Semester_$i" + new_name="semester_$i" + + if [ -d "$old_name" ]; then + echo "Processing $old_name..." + # Use a temporary name to force Git to recognize the case change + mv "$old_name" "${new_name}_tmp" + mv "${new_name}_tmp" "$new_name" + else + echo "Directory $old_name not found, skipping." + fi + done + + - name: Commit and Push + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "refactor: rename Semester folders to lowercase" || echo "No changes to commit" + git push
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror