0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 12:12:01 +00:00
OI-codes/.github/workflows/sync.yml

25 lines
499 B
YAML
Raw Normal View History

2022-05-26 03:21:26 +00:00
name: Sync Repo
on:
push:
branches:
- master
workflow_dispatch:
jobs:
gitsb:
name: Sync to GitSB
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to remote
run: |
git push --force "https://$GIT_USERNAME:$GIT_PASSWORD@git.sb/baoshuo/OI-codes.git"
env:
GIT_USERNAME: project_62_bot
GIT_PASSWORD: ${{ secrets.GITSB_SYNC_TOKEN }}