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: |
|
2022-05-28 12:53:14 +00:00
|
|
|
git push --no-verify --force "https://$GIT_USERNAME:$GIT_PASSWORD@git.sb/baoshuo/OI-codes.git"
|
2022-05-26 03:21:26 +00:00
|
|
|
env:
|
|
|
|
GIT_USERNAME: project_62_bot
|
|
|
|
GIT_PASSWORD: ${{ secrets.GITSB_SYNC_TOKEN }}
|
2022-05-28 10:17:45 +00:00
|
|
|
|
|
|
|
acgit:
|
|
|
|
name: Sync to AcGit
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Push to remote
|
|
|
|
run: |
|
2022-05-28 12:53:14 +00:00
|
|
|
git push --no-verify --force "https://$GIT_USERNAME:$GIT_PASSWORD@git.acwing.com/baoshuo/OI-codes.git"
|
2022-05-28 10:17:45 +00:00
|
|
|
env:
|
|
|
|
GIT_USERNAME: project_9950_bot
|
|
|
|
GIT_PASSWORD: ${{ secrets.ACGIT_SYNC_TOKEN }}
|