You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed build failing on file already exists. (#327)
* replaced mv with rsync to prevent update failures when directories exist
Signed-off-by: fenn-cs <[email protected]>
* removed and or ignored temp dirs and files before git status check
Signed-off-by: fenn-cs <[email protected]>
Copy file name to clipboardExpand all lines: .github/workflows/core-docs.yml
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -60,20 +60,24 @@ jobs:
60
60
rm phpdocumentor.zip
61
61
- name: List Files
62
62
run: ls
63
-
- name: Move Files
64
-
run: mv docs/phpdocumentor/* .
63
+
- name: Sync old files with newly generated ones.
64
+
run: rsync -av docs/phpdocumentor/* .
65
+
- name: Removed temp dirs
66
+
run: rm -rf docs
65
67
- name: Check if updates/changes.
66
68
run: git status --porcelain > repo-changes.txt
69
+
- name: Check changes file
70
+
run: cat repo-changes.txt
67
71
- name: Verify updates.
68
72
id: allow-deploy
69
73
run: |
70
74
if [ -s repo-changes.txt ]; then echo "Updates made to documentation"; echo '::set-output name=DEPLOY::true'; else echo "No updates made to documentation deployment would be skipped."; echo '::set-output name=DEPLOY::false'; fi
0 commit comments