File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -89,21 +89,17 @@ jobs:
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
91
fetch-depth : 0 # otherwise, you will failed to push refs to dest repo:
92
- - name : Get timestamp
93
- run : echo ::set-env name=TIMESTAMP::$(date +"%s")
94
- - name : Create and checkout new branch
95
- working-directory : ${{ github.workspace }}/openBSE-docs
96
- run : |
97
- git branch action_${{ env.TIMESTAMP }}
98
- git checkout action_${{ env.TIMESTAMP }}
99
92
- name : Copy new docs to openBSE-docs
100
93
run : cp -rf ./openBSE/docs/* ./openBSE-docs/
101
94
- name : Commit changes of openBSE-docs
102
95
working-directory : ${{ github.workspace }}/openBSE-docs
103
96
run : |
104
97
git config --local user.email "action@github.com"
105
98
git config --local user.name "GitHub Action"
106
- git commit -am "Upload docs"
99
+ git add -A
100
+ git commit -m "Upload docs"
101
+ - name : Get timestamp
102
+ run : echo ::set-env name=TIMESTAMP::$(date +"%s")
107
103
- name : Push changes of openBSE-docs
108
104
uses : ad-m/github-push-action@master
109
105
with :
You can’t perform that action at this time.
0 commit comments