File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33name : Update Documentation
44on :
5- push :
6- branches :
7- - main
8-
9- env :
10- FORCE_COLOR : 2
5+ pull_request :
6+ branches : [main]
117
128jobs :
139 run :
1410 name : Generate Documentation README
1511 runs-on : ubuntu-latest
12+ env :
13+ COMMIT_USER : GitHub Actions
14+ COMMIT_EMAIL : actions@github.com
1615 steps :
1716 - name : Checkout repo
1817 uses : actions/checkout@v3
19-
18+ with :
19+ repository : ${{ github.event.pull_request.head.repo.full_name }}
20+ ref : ${{ github.event.pull_request.head.ref }}
2021 - name : Set up Node.js
2122 uses : actions/setup-node@v3
2223 with :
2324 node-version : 16
24- cache : ' npm'
25-
26- - name : Install dependencies
27- run : npm install
28-
25+ - name : Clean install npm dependencies
26+ run : npm ci
2927 - name : Update documentation
3028 run : npm run docs
31-
3229 - name : Commit changes
3330 uses : EndBug/add-and-commit@v9
3431 with :
35- author_name : GitHub Actions
36- author_email : actions@github.com
37- message : ' 📝 Generated Documentation'
38- add : ' .'
32+ author_name : ${{ env.COMMIT_USER }}
33+ author_email : ${{ env.COMMIT_EMAIL }}
34+ message : ' 📝 Updating Docs [ci skip]'
35+ # Configure for custom directories if required
36+ # add: '.' # default '.'
You can’t perform that action at this time.
0 commit comments