diff --git a/.github/workflows/orphaned-assets-check.yml b/.github/workflows/orphaned-assets-check.yml index a754f1750b..f334425b8d 100644 --- a/.github/workflows/orphaned-assets-check.yml +++ b/.github/workflows/orphaned-assets-check.yml @@ -64,3 +64,12 @@ jobs: --body "Found with the find-orphaned-assets.js script" \ --repo github/docs-internal \ --label docs-content-fr + + - name: Send Slack notification if workflow fails + uses: someimportantcompany/github-actions-slack-message@1d367080235edfa53df415bd8e0bbab480f29bad + if: ${{ failure() && env.FREEZE != 'true' }} + with: + channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} + bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} + color: failure + text: The last "Orphaned assets check" run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions/workflows/orphaned-assets-check.yml diff --git a/assets/images/enterprise/2.22/environments-sidebar.png b/assets/images/enterprise/2.22/environments-sidebar.png deleted file mode 100644 index c88fb06060..0000000000 Binary files a/assets/images/enterprise/2.22/environments-sidebar.png and /dev/null differ diff --git a/assets/images/enterprise/2.22/management-console/abuse-rate-limits-checkbox.png b/assets/images/enterprise/2.22/management-console/abuse-rate-limits-checkbox.png deleted file mode 100644 index ceb93203e9..0000000000 Binary files a/assets/images/enterprise/2.22/management-console/abuse-rate-limits-checkbox.png and /dev/null differ diff --git a/assets/images/enterprise/3.0/management-console/abuse-rate-limits-checkbox.png b/assets/images/enterprise/3.0/management-console/abuse-rate-limits-checkbox.png deleted file mode 100644 index ceb93203e9..0000000000 Binary files a/assets/images/enterprise/3.0/management-console/abuse-rate-limits-checkbox.png and /dev/null differ diff --git a/assets/images/enterprise/3.0/organizations/security-and-analysis-disable-or-enable-all-ghas.png b/assets/images/enterprise/3.0/organizations/security-and-analysis-disable-or-enable-all-ghas.png deleted file mode 100644 index 45d5e2373f..0000000000 Binary files a/assets/images/enterprise/3.0/organizations/security-and-analysis-disable-or-enable-all-ghas.png and /dev/null differ diff --git a/assets/images/enterprise/3.1/help/organizations/security-and-analysis-disable-or-enable-all-ghas.png b/assets/images/enterprise/3.1/help/organizations/security-and-analysis-disable-or-enable-all-ghas.png deleted file mode 100644 index c97d76a256..0000000000 Binary files a/assets/images/enterprise/3.1/help/organizations/security-and-analysis-disable-or-enable-all-ghas.png and /dev/null differ diff --git a/assets/images/enterprise/3.1/management-console/abuse-rate-limits-checkbox.png b/assets/images/enterprise/3.1/management-console/abuse-rate-limits-checkbox.png deleted file mode 100644 index ceb93203e9..0000000000 Binary files a/assets/images/enterprise/3.1/management-console/abuse-rate-limits-checkbox.png and /dev/null differ diff --git a/assets/images/enterprise/business-accounts/pages-tab.png b/assets/images/enterprise/business-accounts/pages-tab.png deleted file mode 100644 index 73563a94a7..0000000000 Binary files a/assets/images/enterprise/business-accounts/pages-tab.png and /dev/null differ diff --git a/assets/images/enterprise/business-accounts/update-license-link.png b/assets/images/enterprise/business-accounts/update-license-link.png deleted file mode 100644 index f04479799d..0000000000 Binary files a/assets/images/enterprise/business-accounts/update-license-link.png and /dev/null differ diff --git a/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png b/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png deleted file mode 100644 index a90b2aab3e..0000000000 Binary files a/assets/images/enterprise/github-ae/enterprise-actions-policy-allow-list.png and /dev/null differ diff --git a/assets/images/enterprise/github-ae/organizations/actions-policy-allow-list.png b/assets/images/enterprise/github-ae/organizations/actions-policy-allow-list.png deleted file mode 100644 index baf9c0f8ad..0000000000 Binary files a/assets/images/enterprise/github-ae/organizations/actions-policy-allow-list.png and /dev/null differ diff --git a/assets/images/enterprise/github-ae/repository/actions-policy-allow-list.png b/assets/images/enterprise/github-ae/repository/actions-policy-allow-list.png deleted file mode 100644 index e826e8f717..0000000000 Binary files a/assets/images/enterprise/github-ae/repository/actions-policy-allow-list.png and /dev/null differ diff --git a/assets/images/enterprise/releases/releases-tag-branch.png b/assets/images/enterprise/releases/releases-tag-branch.png deleted file mode 100644 index f880d8402c..0000000000 Binary files a/assets/images/enterprise/releases/releases-tag-branch.png and /dev/null differ diff --git a/assets/images/enterprise/releases/releases-tag-version.png b/assets/images/enterprise/releases/releases-tag-version.png deleted file mode 100644 index 555a6468f3..0000000000 Binary files a/assets/images/enterprise/releases/releases-tag-version.png and /dev/null differ diff --git a/assets/images/help/2fa/2fa-select-mobile.png b/assets/images/help/2fa/2fa-select-mobile.png deleted file mode 100644 index 54d0b71090..0000000000 Binary files a/assets/images/help/2fa/2fa-select-mobile.png and /dev/null differ diff --git a/assets/images/help/2fa/add-fallback-sms-number-button.png b/assets/images/help/2fa/add-fallback-sms-number-button.png deleted file mode 100644 index b857286150..0000000000 Binary files a/assets/images/help/2fa/add-fallback-sms-number-button.png and /dev/null differ diff --git a/assets/images/help/billing/ghas-org-billing-table.png b/assets/images/help/billing/ghas-org-billing-table.png deleted file mode 100644 index 569e2943ce..0000000000 Binary files a/assets/images/help/billing/ghas-org-billing-table.png and /dev/null differ diff --git a/assets/images/help/codespaces/add-constraint-dropdown-retention.png b/assets/images/help/codespaces/add-constraint-dropdown-retention.png deleted file mode 100644 index 1eaf4fcddb..0000000000 Binary files a/assets/images/help/codespaces/add-constraint-dropdown-retention.png and /dev/null differ diff --git a/assets/images/help/codespaces/codespaces-gpg-verification-radio-buttons.png b/assets/images/help/codespaces/codespaces-gpg-verification-radio-buttons.png deleted file mode 100644 index 22c6a43809..0000000000 Binary files a/assets/images/help/codespaces/codespaces-gpg-verification-radio-buttons.png and /dev/null differ diff --git a/assets/images/help/codespaces/codespaces-gpg-verification-repository-drop-down.png b/assets/images/help/codespaces/codespaces-gpg-verification-repository-drop-down.png deleted file mode 100644 index bdfafde1c2..0000000000 Binary files a/assets/images/help/codespaces/codespaces-gpg-verification-repository-drop-down.png and /dev/null differ diff --git a/assets/images/help/codespaces/codespaces-org-access-and-security-radio-buttons.png b/assets/images/help/codespaces/codespaces-org-access-and-security-radio-buttons.png deleted file mode 100644 index d5c032a50e..0000000000 Binary files a/assets/images/help/codespaces/codespaces-org-access-and-security-radio-buttons.png and /dev/null differ diff --git a/assets/images/help/codespaces/edit-timeout-constraint.png b/assets/images/help/codespaces/edit-timeout-constraint.png deleted file mode 100644 index 48b2ada7d3..0000000000 Binary files a/assets/images/help/codespaces/edit-timeout-constraint.png and /dev/null differ diff --git a/assets/images/help/codespaces/jetbrains-copilot-restart.png b/assets/images/help/codespaces/jetbrains-copilot-restart.png deleted file mode 100644 index 19c06a08a5..0000000000 Binary files a/assets/images/help/codespaces/jetbrains-copilot-restart.png and /dev/null differ diff --git a/assets/images/help/codespaces/jetbrains-gateway-initial-view copy.png b/assets/images/help/codespaces/jetbrains-gateway-initial-view copy.png deleted file mode 100644 index 7a6a1cfee3..0000000000 Binary files a/assets/images/help/codespaces/jetbrains-gateway-initial-view copy.png and /dev/null differ diff --git a/assets/images/help/codespaces/label-icon.png b/assets/images/help/codespaces/label-icon.png deleted file mode 100644 index 7a1b31fcab..0000000000 Binary files a/assets/images/help/codespaces/label-icon.png and /dev/null differ diff --git a/assets/images/help/codespaces/react-template-button.png b/assets/images/help/codespaces/react-template-button.png deleted file mode 100644 index 8b4a4bbd87..0000000000 Binary files a/assets/images/help/codespaces/react-template-button.png and /dev/null differ diff --git a/assets/images/help/codespaces/sign-in-to-view-codespaces-vscode-mac.png b/assets/images/help/codespaces/sign-in-to-view-codespaces-vscode-mac.png deleted file mode 100644 index 6bc777cb17..0000000000 Binary files a/assets/images/help/codespaces/sign-in-to-view-codespaces-vscode-mac.png and /dev/null differ diff --git a/assets/images/help/codespaces/start-from-scratch.png b/assets/images/help/codespaces/start-from-scratch.png deleted file mode 100644 index 894ef6b20b..0000000000 Binary files a/assets/images/help/codespaces/start-from-scratch.png and /dev/null differ diff --git a/assets/images/help/desktop/create-pull-request.png b/assets/images/help/desktop/create-pull-request.png deleted file mode 100644 index 6b19ccf1a0..0000000000 Binary files a/assets/images/help/desktop/create-pull-request.png and /dev/null differ diff --git a/assets/images/help/desktop/mac-create-pull-request.png b/assets/images/help/desktop/mac-create-pull-request.png deleted file mode 100644 index da3edb074c..0000000000 Binary files a/assets/images/help/desktop/mac-create-pull-request.png and /dev/null differ diff --git a/assets/images/help/desktop/mac-lock-keychain.png b/assets/images/help/desktop/mac-lock-keychain.png deleted file mode 100644 index ba4c13a9cb..0000000000 Binary files a/assets/images/help/desktop/mac-lock-keychain.png and /dev/null differ diff --git a/assets/images/help/desktop/mac-unlock-keychain.png b/assets/images/help/desktop/mac-unlock-keychain.png deleted file mode 100644 index b5c38547e2..0000000000 Binary files a/assets/images/help/desktop/mac-unlock-keychain.png and /dev/null differ diff --git a/assets/images/help/desktop/preview-dialog-create-pull-request.png b/assets/images/help/desktop/preview-dialog-create-pull-request.png deleted file mode 100644 index a2d3109da9..0000000000 Binary files a/assets/images/help/desktop/preview-dialog-create-pull-request.png and /dev/null differ diff --git a/assets/images/help/desktop/publish-repository-toolbar-button.png b/assets/images/help/desktop/publish-repository-toolbar-button.png deleted file mode 100644 index 08f6b3a8e3..0000000000 Binary files a/assets/images/help/desktop/publish-repository-toolbar-button.png and /dev/null differ diff --git a/assets/images/help/enterprises/enterprise-invitations-bulk-select.png b/assets/images/help/enterprises/enterprise-invitations-bulk-select.png deleted file mode 100644 index 7c03505bf4..0000000000 Binary files a/assets/images/help/enterprises/enterprise-invitations-bulk-select.png and /dev/null differ diff --git a/assets/images/help/organizations/actions-policy-allow-list-with-workflows.png b/assets/images/help/organizations/actions-policy-allow-list-with-workflows.png deleted file mode 100644 index 9e28197c4e..0000000000 Binary files a/assets/images/help/organizations/actions-policy-allow-list-with-workflows.png and /dev/null differ diff --git a/assets/images/help/organizations/actions-policy-allow-list.png b/assets/images/help/organizations/actions-policy-allow-list.png deleted file mode 100644 index 911778c394..0000000000 Binary files a/assets/images/help/organizations/actions-policy-allow-list.png and /dev/null differ diff --git a/assets/images/help/organizations/actions-policy-with-workflows.png b/assets/images/help/organizations/actions-policy-with-workflows.png deleted file mode 100644 index 1fe39d0da3..0000000000 Binary files a/assets/images/help/organizations/actions-policy-with-workflows.png and /dev/null differ diff --git a/assets/images/help/organizations/actions-policy.png b/assets/images/help/organizations/actions-policy.png deleted file mode 100644 index 838cd83b52..0000000000 Binary files a/assets/images/help/organizations/actions-policy.png and /dev/null differ diff --git a/assets/images/help/organizations/add-repositories-button.png b/assets/images/help/organizations/add-repositories-button.png deleted file mode 100644 index d9b21499cc..0000000000 Binary files a/assets/images/help/organizations/add-repositories-button.png and /dev/null differ diff --git a/assets/images/help/organizations/enterprise-actions-policy-allow-list-with-workflows.png b/assets/images/help/organizations/enterprise-actions-policy-allow-list-with-workflows.png deleted file mode 100644 index 4904c37436..0000000000 Binary files a/assets/images/help/organizations/enterprise-actions-policy-allow-list-with-workflows.png and /dev/null differ diff --git a/assets/images/help/organizations/enterprise-actions-policy-allow-list.png b/assets/images/help/organizations/enterprise-actions-policy-allow-list.png deleted file mode 100644 index a24b71ee56..0000000000 Binary files a/assets/images/help/organizations/enterprise-actions-policy-allow-list.png and /dev/null differ diff --git a/assets/images/help/organizations/enterprise-actions-policy-with-workflows.png b/assets/images/help/organizations/enterprise-actions-policy-with-workflows.png deleted file mode 100644 index 8016e5e84f..0000000000 Binary files a/assets/images/help/organizations/enterprise-actions-policy-with-workflows.png and /dev/null differ diff --git a/assets/images/help/organizations/enterprise-actions-policy.png b/assets/images/help/organizations/enterprise-actions-policy.png deleted file mode 100644 index 830894b91a..0000000000 Binary files a/assets/images/help/organizations/enterprise-actions-policy.png and /dev/null differ diff --git a/assets/images/help/organizations/enterprise-cloud-trial-option.png b/assets/images/help/organizations/enterprise-cloud-trial-option.png deleted file mode 100644 index 6bd14e3cc2..0000000000 Binary files a/assets/images/help/organizations/enterprise-cloud-trial-option.png and /dev/null differ diff --git a/assets/images/help/organizations/finish-trial-buttons.png b/assets/images/help/organizations/finish-trial-buttons.png deleted file mode 100644 index 49d60fb929..0000000000 Binary files a/assets/images/help/organizations/finish-trial-buttons.png and /dev/null differ diff --git a/assets/images/help/organizations/org_profile_with_overview.png b/assets/images/help/organizations/org_profile_with_overview.png deleted file mode 100644 index cef5ee8f22..0000000000 Binary files a/assets/images/help/organizations/org_profile_with_overview.png and /dev/null differ diff --git a/assets/images/help/organizations/repository-access-matrix-for-user.png b/assets/images/help/organizations/repository-access-matrix-for-user.png deleted file mode 100644 index 4e22b688a2..0000000000 Binary files a/assets/images/help/organizations/repository-access-matrix-for-user.png and /dev/null differ diff --git a/assets/images/help/organizations/repository-manage-access.png b/assets/images/help/organizations/repository-manage-access.png deleted file mode 100644 index 88ed68df17..0000000000 Binary files a/assets/images/help/organizations/repository-manage-access.png and /dev/null differ diff --git a/assets/images/help/organizations/security-and-analysis-enable-dependency-graph.png b/assets/images/help/organizations/security-and-analysis-enable-dependency-graph.png deleted file mode 100644 index 08f2587f23..0000000000 Binary files a/assets/images/help/organizations/security-and-analysis-enable-dependency-graph.png and /dev/null differ diff --git a/assets/images/help/organizations/start-a-free-trial-button.png b/assets/images/help/organizations/start-a-free-trial-button.png deleted file mode 100644 index 03f2830bba..0000000000 Binary files a/assets/images/help/organizations/start-a-free-trial-button.png and /dev/null differ diff --git a/assets/images/help/organizations/team-repositories-add.png b/assets/images/help/organizations/team-repositories-add.png deleted file mode 100644 index 8ac6db2386..0000000000 Binary files a/assets/images/help/organizations/team-repositories-add.png and /dev/null differ diff --git a/assets/images/help/organizations/team-repositories-change-permission-level.png b/assets/images/help/organizations/team-repositories-change-permission-level.png deleted file mode 100644 index 66a268de82..0000000000 Binary files a/assets/images/help/organizations/team-repositories-change-permission-level.png and /dev/null differ diff --git a/assets/images/help/projects-v2/archived-items-menu-item.png b/assets/images/help/projects-v2/archived-items-menu-item.png deleted file mode 100644 index 126366ad91..0000000000 Binary files a/assets/images/help/projects-v2/archived-items-menu-item.png and /dev/null differ diff --git a/assets/images/help/repository/actions-marketplace-update-release.png b/assets/images/help/repository/actions-marketplace-update-release.png deleted file mode 100644 index b34d2a9367..0000000000 Binary files a/assets/images/help/repository/actions-marketplace-update-release.png and /dev/null differ diff --git a/assets/images/help/repository/actions-policy-allow-list-with-workflows.png b/assets/images/help/repository/actions-policy-allow-list-with-workflows.png deleted file mode 100644 index 4ab25a2ec6..0000000000 Binary files a/assets/images/help/repository/actions-policy-allow-list-with-workflows.png and /dev/null differ diff --git a/assets/images/help/repository/actions-policy.png b/assets/images/help/repository/actions-policy.png deleted file mode 100644 index 92f7283535..0000000000 Binary files a/assets/images/help/repository/actions-policy.png and /dev/null differ diff --git a/assets/images/help/repository/add-autolink-reference.png b/assets/images/help/repository/add-autolink-reference.png deleted file mode 100644 index d9e80bebf7..0000000000 Binary files a/assets/images/help/repository/add-autolink-reference.png and /dev/null differ diff --git a/assets/images/help/repository/additional-issue-template-info.png b/assets/images/help/repository/additional-issue-template-info.png deleted file mode 100644 index 549616a8e4..0000000000 Binary files a/assets/images/help/repository/additional-issue-template-info.png and /dev/null differ diff --git a/assets/images/help/repository/create-a-new-codespace-page.png b/assets/images/help/repository/create-a-new-codespace-page.png deleted file mode 100644 index 256a92c08c..0000000000 Binary files a/assets/images/help/repository/create-a-new-codespace-page.png and /dev/null differ diff --git a/assets/images/help/settings/actions-add-runner-label.png b/assets/images/help/settings/actions-add-runner-label.png deleted file mode 100644 index 6aefd6c67b..0000000000 Binary files a/assets/images/help/settings/actions-add-runner-label.png and /dev/null differ diff --git a/assets/images/help/settings/actions-org-runner-group-member-move-destination.png b/assets/images/help/settings/actions-org-runner-group-member-move-destination.png deleted file mode 100644 index 9a45a86e13..0000000000 Binary files a/assets/images/help/settings/actions-org-runner-group-member-move-destination.png and /dev/null differ diff --git a/assets/images/help/settings/actions-org-runner-group-member-move.png b/assets/images/help/settings/actions-org-runner-group-member-move.png deleted file mode 100644 index e600f14cd4..0000000000 Binary files a/assets/images/help/settings/actions-org-runner-group-member-move.png and /dev/null differ diff --git a/assets/images/help/settings/actions-org-runner-group-members.png b/assets/images/help/settings/actions-org-runner-group-members.png deleted file mode 100644 index 80a50db327..0000000000 Binary files a/assets/images/help/settings/actions-org-runner-group-members.png and /dev/null differ diff --git a/assets/images/help/settings/userbar.png b/assets/images/help/settings/userbar.png deleted file mode 100644 index 7095efa487..0000000000 Binary files a/assets/images/help/settings/userbar.png and /dev/null differ diff --git a/assets/images/help/support/support-recent-response.png b/assets/images/help/support/support-recent-response.png deleted file mode 100644 index b78746dcfa..0000000000 Binary files a/assets/images/help/support/support-recent-response.png and /dev/null differ diff --git a/assets/images/help/teams/team-bulk-management-options.png b/assets/images/help/teams/team-bulk-management-options.png deleted file mode 100644 index e5b2137d07..0000000000 Binary files a/assets/images/help/teams/team-bulk-management-options.png and /dev/null differ diff --git a/assets/images/help/writing/rendered-footnote.png b/assets/images/help/writing/rendered-footnote.png deleted file mode 100644 index 72678d5ff2..0000000000 Binary files a/assets/images/help/writing/rendered-footnote.png and /dev/null differ diff --git a/assets/images/help/writing/unordered-list-rendered (1).png b/assets/images/help/writing/unordered-list-rendered (1).png deleted file mode 100644 index e228d4360e..0000000000 Binary files a/assets/images/help/writing/unordered-list-rendered (1).png and /dev/null differ diff --git a/script/find-orphaned-assets.js b/script/find-orphaned-assets.js index 11b8a3e50d..eb563c3009 100755 --- a/script/find-orphaned-assets.js +++ b/script/find-orphaned-assets.js @@ -137,7 +137,13 @@ async function main(opts) { console.log(JSON.stringify([...allImages], undefined, 2)) } else { for (const imagePath of [...allImages].sort((a, b) => a.localeCompare(b))) { - console.log(imagePath) + // It's important to escape spaces if we're ever going to pipe this + // to xargs. + if (imagePath.includes(' ')) { + console.log(`"${imagePath}"`) + } else { + console.log(imagePath) + } } }