Skip to content

repo sync #24786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/orphaned-assets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/images/help/2fa/2fa-select-mobile.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/images/help/codespaces/label-icon.png
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file removed assets/images/help/codespaces/start-from-scratch.png
Diff not rendered.
Binary file removed assets/images/help/desktop/create-pull-request.png
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/desktop/mac-lock-keychain.png
Diff not rendered.
Binary file removed assets/images/help/desktop/mac-unlock-keychain.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/organizations/actions-policy.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/repository/actions-policy.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/settings/userbar.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/writing/rendered-footnote.png
Diff not rendered.
Diff not rendered.
8 changes: 7 additions & 1 deletion script/find-orphaned-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

Expand Down