wip
This commit is contained in:
@@ -20,23 +20,25 @@ jobs:
|
|||||||
working-directory: .
|
working-directory: .
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: './spearhead'
|
||||||
- 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: Git Config
|
- name: Git Config
|
||||||
run: git config --global user.email "timrorije@gmail.com"
|
run: git config --global user.email "automated@action.com"
|
||||||
- name: Git Config
|
- 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
|
- 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: mkdir
|
- name: mkdir
|
||||||
run: mkdir -p ./$repo/Spearhead
|
run: mkdir -p ./$repo/Spearhead
|
||||||
- name: copy file
|
- name: copy file
|
||||||
run: cp ./$sourcefile ./$repo/Spearhead/$sourcefile
|
run: cp ./spearhead/$sourcefile ./$repo/Spearhead/$sourcefile
|
||||||
- name: copy file
|
- name: copy file
|
||||||
run: cd ./$repo
|
run: cd ./$repo
|
||||||
- name: add
|
- name: add
|
||||||
run: git add --a
|
run: git add --a
|
||||||
- name: commit
|
- name: commit
|
||||||
run: git commit -a -m "Automatic Update of Spearhead README"
|
run: git commit -a -m "Automatic Update of Spearhead README"
|
||||||
- name: commit
|
- name: push
|
||||||
run: git push
|
run: git push
|
||||||
Reference in New Issue
Block a user