Skip to content

Commit

Permalink
Update called workflow lines (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
recrwplay committed Jul 8, 2024
1 parent a654d67 commit 3ea84f8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docs-branch-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: "Verify Branch"

on:
# push:
# branches:
# - main
# branches:
# - dev
# schedule:
# - cron: '00 16 * * *'
Expand All @@ -31,24 +30,24 @@ jobs:
docs-build:
if: ${{ inputs.html || github.event_name == 'push' }}
name: Generate HTML
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@dev
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v1.0.3
with:
retain-artifacts: 14
deploy-id: 0

docs-verify:
name: Verify HTML
needs: docs-build
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@dev
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@v1.0.3

docs-links:
if: ${{ inputs.links || github.event_name == 'push' }}
name: Check links
needs: docs-build
uses: neo4j/docs-tools/.github/workflows/reusable-docs-links.yml@dev
uses: neo4j/docs-tools/.github/workflows/reusable-docs-links.yml@v1.0.3

docs-lint:
if: ${{ inputs.lint || github.event_name == 'push' }}
name: Lint docs
uses: neo4j/docs-tools/.github/workflows/reusable-docs-vale.yml@dev
uses: neo4j/docs-tools/.github/workflows/reusable-docs-lint.yml@v1.0.3

6 changes: 3 additions & 3 deletions .github/workflows/docs-deploy-surge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: "Deploy docs preview"

on:
workflow_run:
workflows: ["Verify docs PR"]
workflows: ["Verify Docs PR"]
types:
- completed

Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
# The changelog contains links to new and changed files in the deployed docs
- name: Comment on PR (changelog)
if: ${{ hashFiles('changelog') != '' }}
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd #v2.8.0
with:
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
recreate: true
Expand All @@ -93,7 +93,7 @@ jobs:
if: ${{ hashFiles('changelog') == '' }}
env:
DEPLOY_URL: ${{ steps.get-deploy-url.outputs.deploy-url }}
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd #v2.8.0
with:
number: ${{ steps.get-deploy-id.outputs.deploy-id }}
header: docs-pr-changes
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docs-pr-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: "Verify docs PR"
name: "Verify Docs PR"

on:
pull_request:
Expand All @@ -10,7 +10,7 @@ jobs:

# Generate HTML
docs-build-pr:
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@main
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v1.0.3
with:
deploy-id: ${{ github.event.number }}
retain-artifacts: 14
Expand All @@ -20,7 +20,7 @@ jobs:
# By default, the job fails if there are errors, passes if there are warnings only.
docs-verify-pr:
needs: docs-build-pr
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@main
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@v1.0.3
with:
failOnWarnings: true

Expand All @@ -37,7 +37,7 @@ jobs:
steps:
- name: Get file changes
id: get-file-changes
uses: tj-actions/changed-files@v41
uses: tj-actions/changed-files@cbda684547adc8c052d50711417fa61b428a9f88 # v41.1.2
with:
separator: ','
files_yaml: |
Expand All @@ -52,7 +52,7 @@ jobs:
docs-updates-comment-pr:
if: needs.docs-build-pr.outputs.pages-listed == 'success'
needs: [docs-build-pr, docs-changes-pr]
uses: neo4j/docs-tools/.github/workflows/reusable-docs-pr-changes.yml@main
uses: neo4j/docs-tools/.github/workflows/reusable-docs-pr-changes.yml@v1.0.3
with:
pages-modified: ${{ needs.docs-changes-pr.outputs.pages-modified }}
pages-added: ${{ needs.docs-changes-pr.outputs.pages-added }}
8 changes: 6 additions & 2 deletions .github/workflows/docs-teardown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: "Documentation Teardown"

on:
pull_request_target:
branches:
- "dev"
- "5.x"
- "4.[0-9]"
- "3.5"
types:
- closed

Expand Down Expand Up @@ -34,7 +39,7 @@ jobs:
surge teardown $DEPLOY_URL --token "$SURGE_TOKEN"
- name: Comment on PR
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # v2.8.0
with:
number: ${{ github.event.pull_request.number }}
header: docs-pr-changes
Expand All @@ -43,4 +48,3 @@ jobs:
The preview documentation has now been torn down - reopening this PR will republish it.
GITHUB_TOKEN: ${{ secrets.DOCS_PR_COMMENT_TOKEN }}

0 comments on commit 3ea84f8

Please sign in to comment.