File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change 48
48
- name : Move the generated folder
49
49
run : |
50
50
mv dot-org-repo/libxslt-md/ ./content/nginx/
51
+
52
+ close-stale-PRs :
53
+ name : Close any related stale PRs
54
+ runs-on : ubuntu-latest
55
+ steps :
56
+ - name : Check for any stale PRs
57
+ id : check-stale-pr
58
+ run : |
59
+
60
+ - name : Close relevant PR if any exists
61
+ if : steps.check-stale-pr.outputs.IS_STALE_FOUND == 'true'
62
+ run : |
63
+
51
64
52
65
create-PR :
53
66
name : Create PR in documentation repository
@@ -56,12 +69,13 @@ jobs:
56
69
runs-on : ubuntu-latest
57
70
steps :
58
71
- name : Generate the PR
59
- uses : actions/github-script@v6
72
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
60
73
with :
61
74
script : |
62
75
const { repo, owner } = context.repo;
76
+
63
77
const result = await github.rest.pulls.create({
64
- title: 'NGINX: Update content for content/nginx due to detected changes',
78
+ title: 'NGINX Plus - Module Ref : Update content for content/nginx due to detected changes',
65
79
owner,
66
80
repo,
67
81
head: '${{ github.ref_name }}',
71
85
'Updated NGINX Plus docs',
72
86
].join('\n')
73
87
});
74
-
88
+
89
+ github.rest.issues.addLabels({
90
+ owner,
91
+ repo,
92
+ issue_number: result.data.number,
93
+ labels: ['product/nginx-plus', 'dependencies', 'module-reference']
94
+ });
You can’t perform that action at this time.
0 commit comments