Skip to content

Commit

Permalink
Use temporary directory for changed README.md in the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
backdround committed Oct 31, 2023
1 parent 7d9a2d9 commit 50ece3c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ jobs:
- 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 -i -r "s/##(#+)/\1/g" ./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: |
Expand All @@ -33,7 +37,6 @@ jobs:
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
file_pattern: doc/*.txt
commit_message: Auto-generate vimdoc
commit_user_name: github-actions[bot]
commit_user_email: github-actions[bot]@users.noreply.github.com
Expand Down

0 comments on commit 50ece3c

Please sign in to comment.