From 3ea84f8e1b9bef8e5f1c5f83cc557e36fdca5d96 Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Thu, 18 Jan 2024 18:06:23 +0000 Subject: [PATCH] Update called workflow lines (#1338) --- .github/workflows/docs-branch-checks.yml | 11 +++++------ .github/workflows/docs-deploy-surge.yml | 6 +++--- .github/workflows/docs-pr-checks.yml | 10 +++++----- .github/workflows/docs-teardown.yml | 8 ++++++-- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docs-branch-checks.yml b/.github/workflows/docs-branch-checks.yml index 1c9acd05e..7763f826b 100644 --- a/.github/workflows/docs-branch-checks.yml +++ b/.github/workflows/docs-branch-checks.yml @@ -3,8 +3,7 @@ name: "Verify Branch" on: # push: - # branches: - # - main + # branches: # - dev # schedule: # - cron: '00 16 * * *' @@ -31,7 +30,7 @@ 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 @@ -39,16 +38,16 @@ jobs: 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 diff --git a/.github/workflows/docs-deploy-surge.yml b/.github/workflows/docs-deploy-surge.yml index 3c99e26ee..7d3248b44 100644 --- a/.github/workflows/docs-deploy-surge.yml +++ b/.github/workflows/docs-deploy-surge.yml @@ -10,7 +10,7 @@ name: "Deploy docs preview" on: workflow_run: - workflows: ["Verify docs PR"] + workflows: ["Verify Docs PR"] types: - completed @@ -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 @@ -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 diff --git a/.github/workflows/docs-pr-checks.yml b/.github/workflows/docs-pr-checks.yml index 86c9be40a..dd5031c07 100644 --- a/.github/workflows/docs-pr-checks.yml +++ b/.github/workflows/docs-pr-checks.yml @@ -1,5 +1,5 @@ -name: "Verify docs PR" +name: "Verify Docs PR" on: pull_request: @@ -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 @@ -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 @@ -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: | @@ -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 }} diff --git a/.github/workflows/docs-teardown.yml b/.github/workflows/docs-teardown.yml index 002a24ef2..9ab7f8774 100644 --- a/.github/workflows/docs-teardown.yml +++ b/.github/workflows/docs-teardown.yml @@ -3,6 +3,11 @@ name: "Documentation Teardown" on: pull_request_target: + branches: + - "dev" + - "5.x" + - "4.[0-9]" + - "3.5" types: - closed @@ -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 @@ -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 }} -