12 uses: actions/checkout@v3
15 # persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
16 # fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
17 - name: Set node version to 16
18 uses: actions/setup-node@v3
22 - name: Generate TypeDoc
28 if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"
30 git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
31 git config --local user.name "github-actions[bot]"
32 git commit -m "Generate TypeDoc" -a
35 if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"
36 # uses: ad-m/github-push-action@master
37 uses: CasperWA/push-protected@v2
39 # github_token: ${{ secrets.GITHUB_TOKEN }}
40 token: ${{ secrets.GH_TOKEN_PROTECTED }}
41 branch: ${{ github.event.repository.default_branch }}
42 unprotect_reviews: true