From b1976450cd1bf8455688b1dc5049ac4f670c2214 Mon Sep 17 00:00:00 2001 From: dutchie032 Date: Tue, 24 Sep 2024 09:56:02 +0200 Subject: [PATCH] update --- .github/workflows/docs.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7d28700..8228588 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,11 +14,19 @@ jobs: branch: main username: dutchie032 repo: dutchie032.github.io + sourcefile: DOC.md defaults: run: working-directory: . steps: + - uses: actions/checkout@v4 - name: Setup credentials to access private repositories run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/ - name: Push generated webpage to another repository - run: git clone --single-branch --branch $branch https://github.com/$username/$repo \ No newline at end of file + run: git clone --single-branch --branch $branch https://github.com/$username/$repo + - name: copy file + run: cp ./$sourcefile ./$repo/Spearhead/$sourcefile + - name: copy file + run: cd ./$repo + - name: commit + run: git commit -a -m "Automatic Update of Spearhead README" \ No newline at end of file