From f8316b9040fc034dd1266b9ed927fb30de79ff1f Mon Sep 17 00:00:00 2001 From: matei jordache Date: Tue, 5 Mar 2024 16:37:37 -0500 Subject: [PATCH] Update documentation.yml --- .github/workflows/documentation.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 0e9546f..1fdac75 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -17,6 +17,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Set up git environment + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.email "robot@mateijordache.info" + git config --global user.name "robot" + git fetch + git checkout documentation + - name: Create output directory run: mkdir -p ${workflow_project_dir}/outputs/gerbers @@ -52,10 +61,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git config --global user.email "robot@mateijordache.info" - git config --global user.name "robot" - git fetch - git checkout documentation git add ${workflow_project_dir}/*.pdf git commit -m "Add design file PDFs to repo [skip ci]" git push origin documentation