Skip to content

ci: update folder exclusion #263

ci: update folder exclusion

ci: update folder exclusion #263

name: auto-update-assets
on:
push:
branches:
- 'main'
schedule:
- cron: '0 0 * * *'
jobs:
builder:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Update Client Extensions Samples
working-directory: ./lfr/pkg/assets/tpl/cx/liferay-client-extensions-samples
run: |
mv git .git
git reset --hard HEAD
git pull
mv .git git
- name: Commit Client Extensions Changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -- ./lfr/pkg/assets/tpl/cx/ ':!./lfr/pkg/assets/tpl/cx/git'
git commit -am "chore: auto update client extensions samples" || echo "We're good for now. See you next time!"
git push