Skip to content

Commit 2b530ff

Browse files
requirements change 23
1 parent 2c3689b commit 2b530ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ jobs:
3131
- name: Build documentation
3232
run: mkdocs build
3333

34-
# Step 5: Initialize Git repository if not already done
35-
- name: Initialize Git repository
34+
# Step 5: Check if the .git directory exists
35+
- name: Check if .git directory exists
3636
run: |
3737
if [ ! -d ".git" ]; then
38+
echo "Initializing git repository..."
3839
git init # Initialize Git repository if it's not already initialized
3940
git remote add origin git@github.com:ProdByGodfather/abarorm.git # Add remote repository
4041
git fetch origin # Fetch from the remote repository to get history
42+
else
43+
echo ".git directory exists."
4144
fi
4245
4346
# Step 6: Checkout or create the 'site' branch
@@ -67,6 +70,7 @@ jobs:
6770
# Step 8: Commit changes if there are any
6871
- name: Commit changes
6972
run: |
73+
git status # Check current status
7074
git add .
7175
git diff-index --quiet HEAD || git commit -m "Update documentation"
7276

0 commit comments

Comments
 (0)