From c6295485f51b8985b566a1a496cf4b04f1966462 Mon Sep 17 00:00:00 2001 From: dutchie032 Date: Tue, 24 Sep 2024 10:19:16 +0200 Subject: [PATCH] wip --- .github/workflows/docs.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 50240af..34a1f64 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -20,23 +20,25 @@ jobs: working-directory: . steps: - uses: actions/checkout@v4 + with: + path: './spearhead' - name: Setup credentials to access private repositories run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/ - name: Git Config - run: git config --global user.email "timrorije@gmail.com" + run: git config --global user.email "automated@action.com" - name: Git Config - run: git config --global user.name "dutchie032" + run: git config --global user.name "automated action" - name: Push generated webpage to another repository run: git clone --single-branch --branch $branch https://github.com/$username/$repo - name: mkdir run: mkdir -p ./$repo/Spearhead - name: copy file - run: cp ./$sourcefile ./$repo/Spearhead/$sourcefile + run: cp ./spearhead/$sourcefile ./$repo/Spearhead/$sourcefile - name: copy file run: cd ./$repo - name: add run: git add --a - name: commit run: git commit -a -m "Automatic Update of Spearhead README" - - name: commit + - name: push run: git push \ No newline at end of file