diff --git a/.github/workflows/create-prs-for-stale-branches.yml b/.github/workflows/create-prs-for-stale-branches.yml index 940caafd..f3c728e8 100644 --- a/.github/workflows/create-prs-for-stale-branches.yml +++ b/.github/workflows/create-prs-for-stale-branches.yml @@ -22,8 +22,10 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" + - name: "Info" shell: bash run: | @@ -67,6 +69,7 @@ jobs: REPO_STATUS: private steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"