chore: add nightly branch sync

release-0.2
Meng Zhang 2023-09-07 10:19:30 +08:00
parent e780031ed6
commit 9b87b657f0
1 changed files with 27 additions and 0 deletions

27
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Create and publish docker image
on:
workflow_dispatch:
schedule:
- cron: '0 20 */1 * *'
jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing nightly branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "main"
TO_BRANCH: "nightly"