From 91a2d4df9156d750d5793495c8a24c8e70f33c35 Mon Sep 17 00:00:00 2001 From: cmoulliard Date: Wed, 7 Aug 2024 18:15:24 +0200 Subject: [PATCH] Use actions/upload-artifact and actions/download-artifact to share the git repository Signed-off-by: cmoulliard --- .github/workflows/publish-pipelines.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-pipelines.yml b/.github/workflows/publish-pipelines.yml index 106015c..6a0adf6 100644 --- a/.github/workflows/publish-pipelines.yml +++ b/.github/workflows/publish-pipelines.yml @@ -69,12 +69,27 @@ jobs: python markdown_code_embed/mdce.py -b -f README.md - create-pr: + upload-repo: needs: [generate] + steps: + - name: Upload repository as artifact + uses: actions/upload-artifact@v3 + with: + name: repo-artifact + path: . + + create-pr: + needs: [upload-repo] runs-on: ubuntu-latest permissions: contents: write # release changes require contents write steps: + - name: Download repository artifact + uses: actions/download-artifact@v3 + with: + name: repo-artifact + path: . + - name: Get current date id: date #if: steps.changed-files-yaml.outputs.doc_any_changed == 'true'