@@ -88,22 +88,23 @@ jobs:
88
88
repository : iamscottxu/openBSE-docs
89
89
path : ${{ github.workspace }}/openBSE-docs
90
90
persist-credentials : false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
91
- fetch-depth : 0 # otherwise, you will failed to push refs to dest repo:
91
+ fetch-depth : 0 # otherwise, you will failed to push refs to dest repo:
92
92
- name : Copy new docs to openBSE-docs
93
- run : cp -rf ./openBSE/* ./openBSE-docs/
93
+ run : cp -rf ./openBSE/docs/ * ./openBSE-docs/
94
94
- name : Commit changes of openBSE-docs
95
95
working-directory : ${{ github.workspace }}/openBSE-docs
96
96
run : |
97
97
git config --local user.email "action@github.com"
98
98
git config --local user.name "GitHub Action"
99
- git commit -a -m "Upload docs"
100
- - name : Get time stamp
101
- run : echo ::set-env name=TIME_STAMP::$(date +"%s")
99
+ git add -A
100
+ git commit -m "Upload docs"
101
+ - name : Get timestamp
102
+ run : echo ::set-env name=TIMESTAMP::$(date +"%s")
102
103
- name : Push changes of openBSE-docs
103
104
uses : ad-m/github-push-action@master
104
105
with :
105
106
force : true
106
- branch : action_${{ env.TIME_STAMP }}
107
+ branch : action_${{ env.TIMESTAMP }}
107
108
directory : ${{ github.workspace }}/openBSE-docs
108
109
repository : iamscottxu/openBSE-docs
109
110
github_token : ${{ secrets.MY_GITHUB_TOKEN }}
0 commit comments