update
This commit is contained in:
@@ -14,11 +14,19 @@ jobs:
|
|||||||
branch: main
|
branch: main
|
||||||
username: dutchie032
|
username: dutchie032
|
||||||
repo: dutchie032.github.io
|
repo: dutchie032.github.io
|
||||||
|
sourcefile: DOC.md
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
working-directory: .
|
working-directory: .
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- name: Setup credentials to access private repositories
|
- name: Setup credentials to access private repositories
|
||||||
run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/
|
run: git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf https://github.com/
|
||||||
- name: Push generated webpage to another repository
|
- name: Push generated webpage to another repository
|
||||||
run: git clone --single-branch --branch $branch https://github.com/$username/$repo
|
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"
|
||||||
Reference in New Issue
Block a user