Skip to content

Use temporary directory for changed README.md in the ci #41

Use temporary directory for changed README.md in the ci

Use temporary directory for changed README.md in the ci #41

Workflow file for this run

name: docs
on:
push:
pull_request:
jobs:
docs:
runs-on: ubuntu-latest
container: alpine:latest
permissions:
contents: write
steps:
- name: Prepare container
run: apk update && apk add git sed
- name: Checkout repository
uses: actions/checkout@v4
# Change /github/home/ to ${RUNNER_TEMP} or ${{ runner.temp }}
# As soon as the bug https://github.com/actions/runner/issues/1984
# will be fixed
- name: Prepare README.md
run: sed -r "s/##(#+)/\1/g" ./README.md > /github/home/README.md
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: improved-search.nvim
pandoc: /github/home/README.md
- name: Prepare environment to push changes
run: |
apk add bash
git config --global --add safe.directory "$(pwd)"
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Auto-generate vimdoc
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>