Skip to content

Commit

Permalink
refactor(ci): rewrite samples autoupdate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed Jul 26, 2023
1 parent 81ef60c commit 33002d1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/auto-update-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update Client Extensions Samples
- name: Remove Client Extensions Samples
working-directory: ./lfr/pkg/assets/tpl/cx
run: |
rm -r liferay-portal
git clone --depth 1 --filter=blob:none --no-checkout https://github.com/liferay/liferay-portal 705ms
- name: Add Latest Client Extensions Samples
working-directory: ./lfr/pkg/assets/tpl/cx/liferay-portal
run: |
mv git .git
git pull
git reflog expire --expire=now --all
git gc --aggressive --prune=all
mv .git git
git sparse-checkout init --no-cone
git sparse-checkout set workspaces/liferay-sample-workspace/client-extensions
git checkout master
rm -r .git
- name: Commit Client Extensions Changes
run: |
git config --global user.name 'github-actions[bot]'
Expand Down

0 comments on commit 33002d1

Please sign in to comment.