hello-theme/.github/workflows/sync-branches.yml
2021-12-19 21:11:37 +02:00

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"