Skip to content

Commit fff2ed1

Browse files
authored
Fix: Force-add ignored docs in release branch workflows (llm-d#293)
The preview/docs directory is in .gitignore for main branch, but needs to be committed in release branches. Use 'git add -f' to force-add these files in both create-release-branch and sync-release-docs workflows. Fixes workflow failure when creating release branches. Signed-off-by: Carlos H. Andrade Costa <chcost@us.ibm.com>
1 parent 2b07bce commit fff2ed1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/create-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
5353
- name: Commit synced docs
5454
run: |
55-
git add preview/docs preview/static/img/docs
55+
git add -f preview/docs preview/static/img/docs
5656
if ! git diff --staged --quiet; then
5757
git commit -m "Initial docs sync from llm-d/llm-d@${{ inputs.source_branch }}"
5858
else

.github/workflows/sync-release-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
cd ..
8282
8383
# Commit changes if any
84-
git add preview/docs preview/static/img/docs
84+
git add -f preview/docs preview/static/img/docs
8585
if ! git diff --staged --quiet; then
8686
COMMIT_MSG="Nightly docs sync from llm-d/llm-d@${SOURCE_BRANCH}
8787

0 commit comments

Comments
 (0)