mirror of
https://gh.wpcy.net/https://github.com/elementor/hello-theme.git
synced 2026-04-27 12:12:21 +08:00
27 lines
682 B
YAML
27 lines
682 B
YAML
name: Sync Branches
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '0 */2 * * *'
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-20.04
|
|
if: startsWith( github.repository, 'elementor/' )
|
|
steps:
|
|
- name: Checkout master branch
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.MAINTAIN_TOKEN }}
|
|
ref: master
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
- name: Sync
|
|
env:
|
|
MAINTAIN_EMAIL: ${{ secrets.MAINTAIN_EMAIL }}
|
|
MAINTAIN_USERNAME: ${{ secrets.MAINTAIN_USERNAME }}
|
|
run: |
|
|
bash "${GITHUB_WORKSPACE}/.github/scripts/sync-branches.sh"
|