mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix yamllint warnings/errors
This commit is contained in:
8
.github/workflows/gen_vc.yml
vendored
8
.github/workflows/gen_vc.yml
vendored
@@ -10,6 +10,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-vc:
|
build-vc:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
VREPO: github.com/vlang/vc.git
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build V
|
- name: Build V
|
||||||
@@ -23,7 +25,8 @@ jobs:
|
|||||||
COMMIT_MSG=$(git log -1 --oneline --pretty='%s' HEAD)
|
COMMIT_MSG=$(git log -1 --oneline --pretty='%s' HEAD)
|
||||||
|
|
||||||
rm -rf vc
|
rm -rf vc
|
||||||
git clone --depth=1 https://vlang-bot:${{ secrets.VLANG_BOT_SECRET }}@github.com/vlang/vc.git
|
git clone --depth=1 \
|
||||||
|
https://vlang-bot:${{ secrets.VLANG_BOT_SECRET }}@$VREPO
|
||||||
|
|
||||||
rm -rf vc/v.c vc/v_win.c
|
rm -rf vc/v.c vc/v_win.c
|
||||||
|
|
||||||
@@ -40,5 +43,6 @@ jobs:
|
|||||||
git -C vc add v.c v_win.c
|
git -C vc add v.c v_win.c
|
||||||
git -C vc commit -m "[v:master] $COMMIT_HASH - $COMMIT_MSG"
|
git -C vc commit -m "[v:master] $COMMIT_HASH - $COMMIT_MSG"
|
||||||
|
|
||||||
git -C vc pull --rebase origin master # in case there are recent commits
|
# in case there are recent commits:
|
||||||
|
git -C vc pull --rebase origin master
|
||||||
git -C vc push
|
git -C vc push
|
||||||
|
|||||||
3
.github/workflows/module_docs.yml
vendored
3
.github/workflows/module_docs.yml
vendored
@@ -17,4 +17,5 @@ jobs:
|
|||||||
run: ./v doc -m -f html vlib/
|
run: ./v doc -m -f html vlib/
|
||||||
- name: Deploy docs to vercel
|
- name: Deploy docs to vercel
|
||||||
if: ${{ github.event_name == 'push' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: npx vercel --confirm --prod --name vmodules --token ${{ secrets.VERCEL_TOKEN }} vlib/_docs/ || true
|
run: npx vercel --confirm --prod --name vmodules \
|
||||||
|
--token ${{ secrets.VERCEL_TOKEN }} vlib/_docs/ || true
|
||||||
|
|||||||
Reference in New Issue
Block a user