Skip to content

CorePressWPTheme

CorePressWPTheme #68

name: CorePressWPTheme
on:
schedule:
- cron: '20 9 * * *'
workflow_dispatch:
watch:
types: started
repository_dispatch:
types: sync-CorePressWPTheme
jobs:
repo-sync:
env:
PAT: ${{ secrets.PAT }}
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Create new branch
uses: actions/github-script@v6
with:
script: |
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/heads/CorePressWPTheme',
sha: context.sha
});
- name: sync CorePressWPTheme
uses: repo-sync/github-sync@v2
if: env.PAT
with:
source_repo: "https://github.com/ghboke/CorePressWPTheme"
source_branch: "main"
destination_branch: "CorePressWPTheme"
github_token: ${{ secrets.PAT }}