Skip to content

Commit

Permalink
ci: add auto-update on client-extensions samples
Browse files Browse the repository at this point in the history
  • Loading branch information
lgdd committed May 30, 2023
1 parent 597a2c0 commit 869a005
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/auto-update-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: auto-update-assets

on:
push:
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-portal
run: |
mv git .git
git pull
mv .git git
- name: Commit Client Extensions Changes
run: |
git config --global user.name 'lgdd'
git config --global user.email '[email protected]'
git add ./lfr/pkg/assets/tpl/cx/
git commit -am "chore: auto update client extensions samples" || echo "We're good for now. See you next time!"
git push

0 comments on commit 869a005

Please sign in to comment.