-
Notifications
You must be signed in to change notification settings - Fork 521
43 lines (35 loc) · 1.22 KB
/
Copy pathsync-source.yml
File metadata and controls
43 lines (35 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Sync from liferay-portal
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
inputs:
portal_branch:
description: 'liferay-portal branch to sync'
required: false
default: 'master'
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout Clay repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: master
- name: Run local sync script
run: |
bash ./scripts/sync-portal-to-packages.sh --branch "${{ github.event.inputs.portal_branch || 'master' }}"
- name: Commit and push changes
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
if git diff --quiet -- packages www; then
echo "No changes to commit"
exit 0
fi
git add packages www
git commit -m "chore: sync clay source from liferay-portal"
git push origin master