Skip to content

Commit d6f10a9

Browse files
committed
Dummy
1 parent fd75d04 commit d6f10a9

File tree

1 file changed

+5
-60
lines changed

1 file changed

+5
-60
lines changed

.github/workflows/dot-org-content.yml

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Clone the nginx/nginx-org repository
1919
run: |
2020
git clone --depth=2 https://github.com/nginx/nginx.org.git dot-org-repo
21-
- name: Change for changes in xml/en folder
21+
- name: Check for changes in xml/en folder
2222
id: check_changes
2323
run: |
2424
cd dot-org-repo
@@ -32,66 +32,11 @@ jobs:
3232
echo "No changes in /en"
3333
echo "changed=false" >> $GITHUB_OUTPUT
3434
fi
35-
36-
- name: Execute make target 'make hugo-md' to generate markdown
37-
if: steps.check_changes.outputs.changed == 'true'
38-
run: |
39-
cd dot-org-repo
40-
make module-markdown
41-
42-
move-generated-files:
43-
name: Move generated markdown files to '/content/nginx' directory
44-
if: needs.detect-changes.outputs.IS_CHANGES_DETECTED
45-
needs: detect-changes
46-
runs-on: ubuntu-latest
47-
steps:
48-
- name: Move the generated folder
49-
run: |
50-
mv dot-org-repo/libxslt-md/ ./content/nginx/
51-
52-
close-stale-PRs:
53-
name: Close any related stale PRs
54-
needs: move-generated-files
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Check for any stale PRs
58-
id: check-stale-pr
59-
run: |
60-
"PLACEHOLDER"
61-
62-
- name: Close relevant PR if any exists
63-
if: steps.check-stale-pr.outputs.IS_STALE_FOUND == 'true'
64-
run: |
65-
"PLACEHOLDER"
66-
67-
6835
create-PR:
6936
name: Create PR in documentation repository
70-
if: needs.detect-changes.outputs.IS_CHANGES_DETECTED
71-
needs: close-stale-PRs
7237
runs-on: ubuntu-latest
7338
steps:
74-
- name: Generate the PR
75-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
76-
with:
77-
script: |
78-
const { repo, owner } = context.repo;
79-
80-
const result = await github.rest.pulls.create({
81-
title: 'NGINX Plus - Module Ref: Update content for content/nginx due to detected changes',
82-
owner,
83-
repo,
84-
head: '${{ github.ref_name }}',
85-
base: 'develop',
86-
body: [
87-
'### Proposed Changes',
88-
'Updated NGINX Plus docs',
89-
].join('\n')
90-
});
91-
92-
github.rest.issues.addLabels({
93-
owner,
94-
repo,
95-
issue_number: result.data.number,
96-
labels: ['product/nginx-plus', 'dependencies', 'module-reference']
97-
});
39+
- name: Create a new branch
40+
run: gh pr create -B base_branch -H branch_to_merge --title 'NGINX Plus - Module Ref - Update content for content/nginx due to detected changes' --body '### Proposed Changes\nUpdated NGINX Plus docs'
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)