From bcc8c5049b0c2f558ec0b6b84393fb4b3d12d7b4 Mon Sep 17 00:00:00 2001 From: Greg King Date: Fri, 17 Jun 2022 18:24:42 -0400 Subject: [PATCH] Went back to using actions/checkout@v2. (Direct cloning doesn't support pushing with a hidden token.) I'm putting this aside, for now. A Personal Access Token must be made for the repository. "git push" does a dry-run, so that the workflow will succeed. --- .github/workflows/snapshot-on-push-master.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snapshot-on-push-master.yml b/.github/workflows/snapshot-on-push-master.yml index a4d2950ca..b014bac54 100644 --- a/.github/workflows/snapshot-on-push-master.yml +++ b/.github/workflows/snapshot-on-push-master.yml @@ -96,11 +96,16 @@ jobs: name: cc65-snapshot-win64.zip path: cc65-snapshot-win64.zip + - name: Get the online documents repo. + uses: actions/checkout@v2 + with: + repository: cc65/doc + path: doc.git - name: Update the online documents. env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - git clone --depth 1 https://${GH_TOKEN}@github.com/cc65/doc.git doc.git + env cd doc.git rm *.* cp ../html/*.* . @@ -109,7 +114,7 @@ jobs: git config push.default simple git add -A git commit -m "Updated from cc65 commit ${GITHUB_SHA}." - git push -v + git push -n # enter secrets under "repository secrets" - name: Upload snapshot to sourceforge