ci: tmp dir

This commit is contained in:
Folke Lemaitre 2024-06-23 20:37:58 +02:00
parent f2da9842ea
commit 7d1cd6b519
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 5 additions and 4 deletions

View File

@ -44,6 +44,7 @@ jobs:
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
sync-docs: sync-docs:
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -54,9 +55,9 @@ jobs:
- name: Copy docs and README.md - name: Copy docs and README.md
run: | run: |
mkdir -p temp-docs mkdir -p /tmp/temp-docs
cp -r doc/ temp-docs/ cp -r doc/ temp-docs/
cp README.md temp-docs/ cp README.md /tmp/temp-docs/
- name: Checkout main branch - name: Checkout main branch
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -65,8 +66,8 @@ jobs:
- name: Copy to main branch - name: Copy to main branch
run: | run: |
cp -r temp-docs/doc/ . cp -r /tmp/temp-docs/doc/ .
cp temp-docs/README.md . cp /tmp/temp-docs/README.md .
- name: Commit and push changes - name: Commit and push changes
run: | run: |