on:
push:
- branches: [master]
+ branches:
+ - ${{ github.event.repository.default_branch }}
pull_request:
# The branches below must be a subset of the branches above
- branches: [master]
+ branches:
+ - ${{ github.event.repository.default_branch }}
schedule:
- cron: '44 9 * * 3'
npm run typedoc
- name: Commit files
- if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/master'"
+ if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Generate TypeDoc" -a
- name: Push changes
- if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/master'"
+ if: "github.repository == 'poolifier/poolifier' && github.ref == 'refs/heads/${{ github.event.repository.default_branch }}'"
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}