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.
This commit is contained in:
@@ -96,11 +96,16 @@ jobs:
|
|||||||
name: cc65-snapshot-win64.zip
|
name: cc65-snapshot-win64.zip
|
||||||
path: 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.
|
- name: Update the online documents.
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://${GH_TOKEN}@github.com/cc65/doc.git doc.git
|
env
|
||||||
cd doc.git
|
cd doc.git
|
||||||
rm *.*
|
rm *.*
|
||||||
cp ../html/*.* .
|
cp ../html/*.* .
|
||||||
@@ -109,7 +114,7 @@ jobs:
|
|||||||
git config push.default simple
|
git config push.default simple
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Updated from cc65 commit ${GITHUB_SHA}."
|
git commit -m "Updated from cc65 commit ${GITHUB_SHA}."
|
||||||
git push -v
|
git push -n
|
||||||
|
|
||||||
# enter secrets under "repository secrets"
|
# enter secrets under "repository secrets"
|
||||||
- name: Upload snapshot to sourceforge
|
- name: Upload snapshot to sourceforge
|
||||||
|
|||||||
Reference in New Issue
Block a user