Skip to content

Commit fd57f0f

Browse files
authored
Merge pull request #35881 from github/repo-sync
Repo sync
2 parents dee41b3 + d32460b commit fd57f0f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ jobs:
129129
--title "Delete orphan files ($current_daystamp)" \
130130
--body '👋 humans. This PR was generated from docs-internal/.github/workflows/delete-orphan-translation-files.yml.
131131
' \
132-
--repo "${{ matrix.language_repo }}"
132+
--repo "${{ matrix.language_repo }}" \
133+
--head=$branch_name
133134
echo "Merge created PR..."
134135
retry_command gh pr merge --merge --auto --delete-branch "$branch_name"
135136

.github/workflows/sync-audit-logs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ jobs:
5454
# If nothing to commit, exit now. It's fine. No orphans.
5555
changes=$(git diff --name-only | wc -l)
5656
untracked=$(git status --untracked-files --short | wc -l)
57-
if [[ $changes -eq 0 ]] && [[ $untracked -eq 0 ]]; then
57+
filesChanged=$(git diff --name-only)
58+
# There will always be at least one file changed:
59+
# src/audit-logs/lib/config.json
60+
# If the config file is the only file changed, exit.
61+
if [[ $changes -eq 1 ]] && [[ $untracked -eq 1 ]] && [[ $filesChanged == *lib/config.json ]]; then
5862
echo "There are no changes to commit or untracked files. Exiting..."
5963
exit 0
6064
fi
@@ -83,7 +87,8 @@ jobs:
8387
8488
If CI does not pass or other problems arise, contact #docs-engineering on slack.' \
8589
--repo github/docs-internal \
86-
--label audit-log-pipeline
90+
--label audit-log-pipeline \
91+
--head=$branchname
8792
8893
# can't approve your own PR, approve with Actions
8994
unset GITHUB_TOKEN
@@ -93,7 +98,7 @@ jobs:
9398
# Actions can't merge the PR so back to docs-bot to merge the PR
9499
unset GITHUB_TOKEN
95100
gh auth login --with-token <<< "${{ secrets.DOCS_BOT_PAT_WORKFLOW_READORG }}"
96-
gh pr merge --auto --delete-branch
101+
gh pr merge --auto
97102
98103
- uses: ./.github/actions/slack-alert
99104
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

.github/workflows/sync-secret-scanning.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
7777
If CI does not pass or other problems arise, contact #docs-engineering on Slack.' \
7878
--repo github/docs-internal \
79-
--label secret-scanning-pipeline,'skip FR board',ready-for-doc-review
79+
--label secret-scanning-pipeline,'skip FR board',ready-for-doc-review \
80+
--head=$branchname
8081
8182
- uses: ./.github/actions/slack-alert
8283
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}

0 commit comments

Comments
 (0)