Skip to content

Commit 798e5bb

Browse files
committed
Merge branch 'master' of https://github.com/iamscottxu/openBSE
2 parents eacc864 + 849580a commit 798e5bb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,23 @@ jobs:
8888
repository: iamscottxu/openBSE-docs
8989
path: ${{ github.workspace }}/openBSE-docs
9090
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:
9292
- name: Copy new docs to openBSE-docs
93-
run: cp -rf ./openBSE/* ./openBSE-docs/
93+
run: cp -rf ./openBSE/docs/* ./openBSE-docs/
9494
- name: Commit changes of openBSE-docs
9595
working-directory: ${{ github.workspace }}/openBSE-docs
9696
run: |
9797
git config --local user.email "action@github.com"
9898
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")
102103
- name: Push changes of openBSE-docs
103104
uses: ad-m/github-push-action@master
104105
with:
105106
force: true
106-
branch: action_${{ env.TIME_STAMP }}
107+
branch: action_${{ env.TIMESTAMP }}
107108
directory: ${{ github.workspace }}/openBSE-docs
108109
repository: iamscottxu/openBSE-docs
109110
github_token: ${{ secrets.MY_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)