opengpt / .github /workflows /sync-hf-spaces-with-dev.yml
github-actions[bot]
GitHub deploy: ae0c6c6c16ac02732fda24c616dd98aafc529e97
8b50706
raw
history blame contribute delete
574 Bytes
name: Sync hf-spaces with dev
on:
push:
branches:
- dev
- hf-spaces
schedule:
- cron: '0 0 * * *'
pull_request:
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync with dev
run: |
git checkout dev
git fetch origin
git checkout hf-space
git pull
git merge origin/dev
git push origin hf-space