Skip to content

Commit f2dc0b1

Browse files
authored
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]>
1 parent 275c53f commit f2dc0b1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/core-docs.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,20 +60,24 @@ jobs:
6060
rm phpdocumentor.zip
6161
- name: List Files
6262
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
6567
- name: Check if updates/changes.
6668
run: git status --porcelain > repo-changes.txt
69+
- name: Check changes file
70+
run: cat repo-changes.txt
6771
- name: Verify updates.
6872
id: allow-deploy
6973
run: |
7074
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
7175
- name: Commit changes and deply
7276
if: ${{ steps.allow-deploy.outputs.DEPLOY == 'true' }}
7377
run: |
74-
rm -rf docs
78+
rm repo-changes.txt
7579
git config user.name "github-actions"
7680
git config user.email "[email protected]"
7781
git add .
7882
git commit -s -m "phplist/core docs deployment `date`"
79-
git push
83+
git push

php.zip

-579 KB
Binary file not shown.

0 commit comments

Comments
 (0)