From 3887180201a81d45a93f89d2936b7b5bc0fabe4d Mon Sep 17 00:00:00 2001 From: Michael Chris Lopez Date: Fri, 29 Oct 2021 14:24:53 +0800 Subject: [PATCH] chore: format yml --- .editorconfig | 4 +++ .github/workflows/build.yml | 68 ++++++++++++++++++------------------- .github/workflows/doc.yml | 68 ++++++++++++++++++------------------- 3 files changed, 72 insertions(+), 68 deletions(-) diff --git a/.editorconfig b/.editorconfig index b607767..907c70a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,7 @@ indent_style = tab [*.vim] indent_style = space + +[*.yml] +indent_size = 2 +indent_style = space diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f906d52..e887145 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,47 +1,47 @@ name: build on: - push: - branches: [main] + push: + branches: [main] jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write + pull-requests: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 + steps: + - uses: actions/checkout@v2 - - name: Clone lush - run: git clone --depth 1 https://github.com/rktjmp/lush.nvim ~/.local/share/nvim/site/pack/zenbones/start/lush.nvim + - name: Clone lush + run: git clone --depth 1 https://github.com/rktjmp/lush.nvim ~/.local/share/nvim/site/pack/zenbones/start/lush.nvim - - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - version: stable + - uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable - - name: Setup git - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - printf 'BUILD_BRANCH=bot/build/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV + - name: Setup git + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + printf 'BUILD_BRANCH=bot/build/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV - - name: Checkout to build branch - run: git checkout -b ${BUILD_BRANCH} + - name: Checkout to build branch + run: git checkout -b ${BUILD_BRANCH} - - name: Run builder script - run: make + - name: Run builder script + run: make - - name: Create PR - run: | - if ! [[ -z $(git status -s) ]]; then - git add autoload/lightline/colorscheme/ colors/ lua/lualine/ extras/ - git commit -m "chore: rebuild artifacts" - git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${BUILD_BRANCH} - gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${BUILD_BRANCH} || true - fi + - name: Create PR + run: | + if ! [[ -z $(git status -s) ]]; then + git add autoload/lightline/colorscheme/ colors/ lua/lualine/ extras/ + git commit -m "chore: rebuild artifacts" + git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${BUILD_BRANCH} + gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${BUILD_BRANCH} || true + fi diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 54a6566..9190664 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -1,43 +1,43 @@ name: doc on: - push: - branches: [main] + push: + branches: [main] jobs: - vimdocgen: - runs-on: ubuntu-latest + vimdocgen: + runs-on: ubuntu-latest - permissions: - contents: write - pull-requests: write - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write + pull-requests: write + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - name: Setup git - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV + steps: + - uses: actions/checkout@v2 + - name: Setup git + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV - - name: Checkout to vimdoc branch - run: git checkout -b ${VIMDOC_BRANCH} + - name: Checkout to vimdoc branch + run: git checkout -b ${VIMDOC_BRANCH} - - name: panvimdoc - uses: kdheepak/panvimdoc@v2.7.1 - with: - # Output vimdoc project name - vimdoc: zenbones - pandoc: doc/zenbones.md - description: "A collection of contrast-based vim/neovim colorschemes" - version: "Vim v8.1 / Neovim 0.5.0" - - name: Create PR - run: | - if ! [[ -z $(git status -s) ]]; then - git add doc/zenbones.txt - git commit -m "chore: generated vimdoc" - git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH} - gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true - fi + - name: panvimdoc + uses: kdheepak/panvimdoc@v2.7.1 + with: + # Output vimdoc project name + vimdoc: zenbones + pandoc: doc/zenbones.md + description: "A collection of contrast-based vim/neovim colorschemes" + version: "Vim v8.1 / Neovim 0.5.0" + - name: Create PR + run: | + if ! [[ -z $(git status -s) ]]; then + git add doc/zenbones.txt + git commit -m "chore: generated vimdoc" + git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH} + gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true + fi