File tree Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Expand file tree Collapse file tree 2 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish
2
2
3
-
4
3
on :
5
4
push :
6
5
branches :
7
6
- main
8
-
9
- # Allows you to run this workflow manually from the Actions tab
10
7
workflow_dispatch :
11
-
12
- # This gets called from the update-cli workflow
13
8
workflow_call :
14
9
15
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16
- permissions :
17
- contents : read
18
- pages : write
19
- id-token : write
20
-
21
10
jobs :
22
11
build-and-upload :
12
+ permissions :
13
+ contents : read
23
14
runs-on : ubuntu-latest
24
15
steps :
25
16
# Check out the content (source branch)
46
37
path : ' ./public'
47
38
48
39
deploy :
40
+ permissions :
41
+ pages : write
42
+ id-token : write
49
43
environment :
50
44
name : github-pages
51
45
url : ${{ steps.deployment.outputs.page_url }}
Original file line number Diff line number Diff line change 1
1
name : Update CLI
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
schedule :
5
6
- cron : " 14 2 * * *"
6
- workflow_dispatch :
7
-
8
- permissions :
9
- contents : write
10
7
11
8
jobs :
12
9
update-cli :
16
13
steps :
17
14
- name : Check out source
18
15
uses : actions/checkout@v3
16
+ - name : Setup git user
17
+ run : |
18
+ git config --global user.email "npm-cli+bot@github.com"
19
+ git config --global user.name "npm CLI robot"
19
20
- name : Use Node.js
20
21
uses : actions/setup-node@v3
21
22
with :
38
39
if : steps.status.outputs.has_changes == '1'
39
40
run : |
40
41
git add --verbose .
41
- git config user.name 'npm CLI robot'
42
- git config user.email 'npm-cli+bot@github.com'
43
42
git commit -m 'CLI documentation update from CI'
44
43
git push origin main
45
44
You can’t perform that action at this time.
0 commit comments