改正《跨性别群体诸多权益应得到广泛关注》一文的作者及出处 & 引入联合国的一篇文章 (#374) #331
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Count Signature Number | |
| on: push | |
| jobs: | |
| count: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup S.C. | |
| id: sc-dl | |
| run: | | |
| wget "https://github.com/LGBT-CN/signature-counter/releases/latest/download/signature-counter" | |
| chmod +x ./signature-counter | |
| chmod +w * | |
| - name: Run S.C. | |
| run: | | |
| ./signature-counter ./README.md | |
| rm -f ./signature-counter | |
| - name: Commit S.C. | |
| run: | | |
| git config user.name KevinZonda | |
| git config user.email 33132228+KevinZonda@users.noreply.github.com | |
| git add . | |
| git commit -m "S.C.: `date "+%Y-%m-%d %H:%M:%S UTC%:z"`" || true | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |