From 886e672d458ba1f8d22519e71a07e9e96f741d35 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Wed, 2 Oct 2024 01:35:32 +0000 Subject: [PATCH] [ProtectedFiles] Log message for user 'azure-sdk' --- .github/workflows/protected-files.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/protected-files.yaml b/.github/workflows/protected-files.yaml index 84a962a9726d..37e7ae730f06 100644 --- a/.github/workflows/protected-files.yaml +++ b/.github/workflows/protected-files.yaml @@ -9,8 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - # Always allow bot account 'azure-sdk' to update protected files. - # Since check is required, the job itself cannot be skipped, but all steps can. + # Allow bot account 'azure-sdk' to update protected files. + # Since check is required, the job itself cannot be skipped. + - name: Allow bot account 'azure-sdk' + if: github.event.pull_request.user.login == 'azure-sdk' + run: echo "Bot account 'azure-sdk' is allowed to update protected files" - uses: actions/checkout@v4 if: github.event.pull_request.user.login != 'azure-sdk'