Update documentation.yml

This commit is contained in:
2024-03-05 16:48:04 -05:00
parent f8316b9040
commit 73ced228b0

View File

@@ -17,15 +17,6 @@ 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
@@ -61,9 +52,11 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "robot@mateijordache.info"
git config --global user.name "robot"
git switch -c documentation
git add ${workflow_project_dir}/*.pdf
git commit -m "Add design file PDFs to repo [skip ci]"
git push origin documentation
gh pr create --head documentation --base main --title "Add design file PDFs to repo" --body "Automated PR from GHA"
- name: Archive artifacts