Skip to content

Commit 74ba7bf

Browse files
authored
Merge pull request #31961 from github/repo-sync
Repo sync
2 parents af0d57c + 8b7ff0b commit 74ba7bf

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/delete-orphan-translation-files.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,22 @@ jobs:
9999
exit 0
100100
fi
101101
102+
# Create a general retry function that retries and sleeps
103+
retry_command() {
104+
local max_attempts=3
105+
local attempt=1
106+
107+
while [ $attempt -le $max_attempts ]; do
108+
echo "Attempt $attempt: $@"
109+
"$@" && return 0
110+
((attempt++))
111+
sleep 3 # You can adjust the sleep duration as needed
112+
done
113+
114+
echo "Max attempts reached. Command failed after $max_attempts attempts."
115+
return 1
116+
}
117+
102118
git status
103119
current_timestamp=$(date '+%Y-%m-%d-%H%M%S')
104120
branch_name="delete-orphan-files-$current_timestamp"
@@ -115,7 +131,7 @@ jobs:
115131
' \
116132
--repo "${{ matrix.language_repo }}"
117133
echo "Merge created PR..."
118-
gh pr merge --merge --auto --delete-branch "$branch_name"
134+
retry_command gh pr merge --merge --auto --delete-branch "$branch_name"
119135
120136
- uses: ./.github/actions/slack-alert
121137
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

content/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ You can use your two-factor authentication credentials or two-factor authenticat
9191
**Warning**: {% data reusables.accounts.you-must-know-your-password %}
9292

9393
{% endwarning %}
94-
1. Under "Having problems?", click **Use a recovery code or request a reset**.
94+
1. Under "Having problems?", click **Use a recovery code or begin 2FA account recovery**.
9595

96-
![Screenshot of the 2FA page at sign in. A link with the text "Use a recovery code or request a reset" is outlined in orange.](/assets/images/help/2fa/use-recovery-code-or-reset-link.png)
9796
{% ifversion 2fa-reconfiguration-inline-update %}
9897
1. Under "Locked out?", click **Recover your account or unlink an email address**.
9998
{% else %}

0 commit comments

Comments
 (0)