Skip to content

Commit 849580a

Browse files
authored
Update npm-publish.yml
1 parent af7799b commit 849580a

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,17 @@ jobs:
8989
path: ${{ github.workspace }}/openBSE-docs
9090
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
9191
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 }}
9992
- name: Copy new docs to openBSE-docs
10093
run: cp -rf ./openBSE/docs/* ./openBSE-docs/
10194
- name: Commit changes of openBSE-docs
10295
working-directory: ${{ github.workspace }}/openBSE-docs
10396
run: |
10497
git config --local user.email "action@github.com"
10598
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")
107103
- name: Push changes of openBSE-docs
108104
uses: ad-m/github-push-action@master
109105
with:

0 commit comments

Comments
 (0)