Skip to content

Commit 791a70b

Browse files
committed
refactored CI
1 parent 6460674 commit 791a70b

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

.github/workflows/getbadge.yml

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,13 @@ jobs:
1818
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
1919
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
2020

21-
- name: Add bot user
22-
run: |
23-
git config --local user.email "[email protected]"
24-
git config --local user.name "[bot]"
25-
2621
- name: Set up Python 3.7
2722
uses: actions/setup-python@v2
2823
with:
2924
python-version: 3.7
3025

3126
- name: Install deps
32-
run: pip install numpy pandas
33-
34-
- name: Remove Outdated file
35-
run: |
36-
git rm --cached ${{github.workspace}}/assets/test.md
37-
git add .
38-
git commit -m "removed file temporarily"
27+
run: pip install numpy pandas aspose-words
3928

4029
- name: Get info
4130
run: |
@@ -44,22 +33,4 @@ jobs:
4433
ls -haltr
4534
python generate_badge.py
4635
ls -haltr
47-
48-
- name: Commit update
49-
run: |
50-
git status
51-
git diff
52-
git add ${{github.workspace}}/assets/test.md
53-
git commit -m "Update download count [skip ci]" -a
54-
55-
- name: Push changes
56-
uses: ad-m/github-push-action@master
57-
with:
58-
force: false
59-
github_token: ${{ secrets.GITHUB_TOKEN }}
60-
branch: ${{ github.master }}
61-
62-
# auto-doc
63-
- name: Markdown autodocs
64-
uses: dineshsonachalam/[email protected]
6536

0 commit comments

Comments
 (0)