chore: format yml

This commit is contained in:
Michael Chris Lopez
2021-10-29 14:24:53 +08:00
parent 586cbf73b9
commit 3887180201
3 changed files with 72 additions and 68 deletions

View File

@@ -10,3 +10,7 @@ indent_style = tab
[*.vim] [*.vim]
indent_style = space indent_style = space
[*.yml]
indent_size = 2
indent_style = space

View File

@@ -1,47 +1,47 @@
name: build name: build
on: on:
push: push:
branches: [main] branches: [main]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Clone lush - name: Clone lush
run: git clone --depth 1 https://github.com/rktjmp/lush.nvim ~/.local/share/nvim/site/pack/zenbones/start/lush.nvim 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 - uses: rhysd/action-setup-vim@v1
with: with:
neovim: true neovim: true
version: stable version: stable
- name: Setup git - name: Setup git
run: | run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
printf 'BUILD_BRANCH=bot/build/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV printf 'BUILD_BRANCH=bot/build/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
- name: Checkout to build branch - name: Checkout to build branch
run: git checkout -b ${BUILD_BRANCH} run: git checkout -b ${BUILD_BRANCH}
- name: Run builder script - name: Run builder script
run: make run: make
- name: Create PR - name: Create PR
run: | run: |
if ! [[ -z $(git status -s) ]]; then if ! [[ -z $(git status -s) ]]; then
git add autoload/lightline/colorscheme/ colors/ lua/lualine/ extras/ git add autoload/lightline/colorscheme/ colors/ lua/lualine/ extras/
git commit -m "chore: rebuild artifacts" git commit -m "chore: rebuild artifacts"
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${BUILD_BRANCH} 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 gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${BUILD_BRANCH} || true
fi fi

View File

@@ -1,43 +1,43 @@
name: doc name: doc
on: on:
push: push:
branches: [main] branches: [main]
jobs: jobs:
vimdocgen: vimdocgen:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup git - name: Setup git
run: | run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV printf 'VIMDOC_BRANCH=bot/vimdoc/%s\n' ${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
- name: Checkout to vimdoc branch - name: Checkout to vimdoc branch
run: git checkout -b ${VIMDOC_BRANCH} run: git checkout -b ${VIMDOC_BRANCH}
- name: panvimdoc - name: panvimdoc
uses: kdheepak/panvimdoc@v2.7.1 uses: kdheepak/panvimdoc@v2.7.1
with: with:
# Output vimdoc project name # Output vimdoc project name
vimdoc: zenbones vimdoc: zenbones
pandoc: doc/zenbones.md pandoc: doc/zenbones.md
description: "A collection of contrast-based vim/neovim colorschemes" description: "A collection of contrast-based vim/neovim colorschemes"
version: "Vim v8.1 / Neovim 0.5.0" version: "Vim v8.1 / Neovim 0.5.0"
- name: Create PR - name: Create PR
run: | run: |
if ! [[ -z $(git status -s) ]]; then if ! [[ -z $(git status -s) ]]; then
git add doc/zenbones.txt git add doc/zenbones.txt
git commit -m "chore: generated vimdoc" git commit -m "chore: generated vimdoc"
git push --force https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} ${VIMDOC_BRANCH} 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 gh pr create --fill --base ${GITHUB_REF#refs/heads/} --head ${VIMDOC_BRANCH} || true
fi fi