From 20bbc475eca9c43481a42caa67d99d8f235cc398 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 26 May 2022 11:21:26 +0800 Subject: [PATCH] feat: sync to git.sb --- .github/workflows/sync.yml | 24 ++++++++++++++++++++++++ .prettierrc | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 00000000..1febf4c9 --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,24 @@ +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 }} diff --git a/.prettierrc b/.prettierrc index 84dc5218..f37b9d11 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,6 +6,12 @@ "options": { "tabWidth": 2 } + }, + { + "files": "*.y{,a}ml", + "options": { + "tabWidth": 2 + } } ] }