Skip to content

Commit 2a6fc23

Browse files
committed
👷 addresses github ci for docs issue
1 parent 46fb2ea commit 2a6fc23

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

.github/workflows/update-docs.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,35 @@
22

33
name: Update Documentation
44
on:
5-
push:
6-
branches:
7-
- main
8-
9-
env:
10-
FORCE_COLOR: 2
5+
pull_request:
6+
branches: [main]
117

128
jobs:
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 '.'

0 commit comments

Comments
 (0)