Skip to content

Commit f67ec9f

Browse files
committed
latest workflows
1 parent 464d92a commit f67ec9f

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

.github/workflows/docs-deploy-surge.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# Use this starter workflow to deploy HTML generated by Antora to surge.sh
22
# Docs are published at <org>-<repo>-<deployid>.surge.sh
33
#
4-
# By default, this workflow runs on completion of a workflow called "Verify Docs PR"
4+
# By default, this workflow runs on completion of a workflow called "Verify docs PR"
55
#
66
# This workflow expects the triggering workflow to generate an artifact called "docs"
77
# - update the reference to "docs" and "docs.zip" in this workflow if your triggering workflow generates an artifact with a different name
88

9+
# change to force workflow with no changelog
10+
911
name: "Deploy docs preview"
1012

1113
on:
1214
workflow_run:
13-
workflows: ["Verify Docs PR"]
15+
workflows: ["Verify docs PR"]
1416
types:
1517
- completed
1618

@@ -23,7 +25,7 @@ jobs:
2325

2426
steps:
2527
- name: "Download built documentation"
26-
uses: actions/github-script@v6.4.1
28+
uses: actions/github-script@v7
2729
env:
2830
RUN_ID: ${{ github.event.workflow_run.id }}
2931
WORKSPACE: ${{ github.workspace }}
@@ -103,7 +105,7 @@ jobs:
103105
# The changelog contains links to new and changed files in the deployed docs
104106
- name: Comment on PR (changelog)
105107
if: ${{ hashFiles('changelog') != '' }}
106-
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd #v2.8.0
108+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0
107109
with:
108110
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
109111
recreate: true
@@ -116,7 +118,7 @@ jobs:
116118
if: ${{ hashFiles('changelog') == '' }}
117119
env:
118120
DEPLOY_URL: ${{ steps.get-deploy-url.outputs.deploy-url }}
119-
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd #v2.8.0
121+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0
120122
with:
121123
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
122124
header: docs-pr-changes

.github/workflows/docs-pr-checks.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

2-
name: "Verify Docs PR"
2+
name: "Verify docs PR"
33

44
on:
55
pull_request:
66
branches:
7-
- main
8-
- dev
7+
- 'dev'
8+
- '5.x'
99

1010
jobs:
1111

1212
# Generate HTML
1313
docs-build-pr:
14-
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v1.1.0
14+
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v1.2.0
1515
with:
1616
deploy-id: ${{ github.event.number }}
1717
retain-artifacts: 14
@@ -21,7 +21,7 @@ jobs:
2121
# By default, the job fails if there are errors, passes if there are warnings only.
2222
docs-verify-pr:
2323
needs: docs-build-pr
24-
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@v1.1.0
24+
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@v1.2.0
2525
with:
2626
failOnWarnings: true
2727

@@ -38,7 +38,7 @@ jobs:
3838
steps:
3939
- name: Get file changes
4040
id: get-file-changes
41-
uses: tj-actions/changed-files@cbda684547adc8c052d50711417fa61b428a9f88 # v41.1.2
41+
uses: tj-actions/changed-files@2f7c5bfce28377bc069a65ba478de0a74aa0ca32 # v46.0.1
4242
with:
4343
separator: ','
4444
files_yaml: |
@@ -53,7 +53,7 @@ jobs:
5353
docs-updates-comment-pr:
5454
if: needs.docs-build-pr.outputs.pages-listed == 'success'
5555
needs: [docs-build-pr, docs-changes-pr]
56-
uses: neo4j/docs-tools/.github/workflows/reusable-docs-pr-changes.yml@v1.1.0
56+
uses: neo4j/docs-tools/.github/workflows/reusable-docs-pr-changes.yml@v1.2.0
5757
with:
5858
pages-modified: ${{ needs.docs-changes-pr.outputs.pages-modified }}
5959
pages-added: ${{ needs.docs-changes-pr.outputs.pages-added }}

.github/workflows/docs-teardown.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ name: "Documentation Teardown"
44
on:
55
pull_request_target:
66
branches:
7-
- main
8-
- dev
7+
- 'dev'
8+
- '5.x'
99
types:
1010
- closed
1111

@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version: lts/*
2020

@@ -37,7 +37,7 @@ jobs:
3737
surge teardown $DEPLOY_URL --token "$SURGE_TOKEN"
3838
3939
- name: Comment on PR
40-
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # v2.8.0
40+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 #v2.9.0
4141
with:
4242
number: ${{ github.event.pull_request.number }}
4343
header: docs-pr-changes
@@ -46,3 +46,4 @@ jobs:
4646
4747
The preview documentation has now been torn down - reopening this PR will republish it.
4848
GITHUB_TOKEN: ${{ secrets.DOCS_PR_COMMENT_TOKEN }}
49+

0 commit comments

Comments
 (0)