task2:321llljjjfff123 #15
This file contains 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 task completion when PR merged | |
on: | |
pull_request: | |
types: [closed] | |
branches: | |
- main | |
paths: | |
- members/*/** | |
workflow_dispatch: | |
jobs: | |
count: | |
# if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 14.15.3 | |
- name: Count task completion | |
run: node scripts/count.js | |
- name: Commit changes | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "chore: update counted task completion" | |
- uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
branch: ${{ github.ref }} |