diff --git a/.github/workflows/approve-dependabot.yml b/.github/workflows/approve-dependabot.yml index 522bd573..73897239 100644 --- a/.github/workflows/approve-dependabot.yml +++ b/.github/workflows/approve-dependabot.yml @@ -30,6 +30,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -78,6 +79,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -124,6 +126,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -170,6 +173,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index d7f7faee..564dafd9 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -27,6 +27,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index 7812fabf..cee7ec99 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -22,6 +22,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/create-prs-for-stale-branches.yml b/.github/workflows/create-prs-for-stale-branches.yml index 954a7696..abd530c9 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" diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 7725b762..cf860eb1 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -18,6 +18,7 @@ jobs: timeout-minutes: 5 steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/dotnet-version.yml b/.github/workflows/dotnet-version.yml index 96c2d45d..ceca94ba 100644 --- a/.github/workflows/dotnet-version.yml +++ b/.github/workflows/dotnet-version.yml @@ -23,6 +23,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/merge-dependabot.yml b/.github/workflows/merge-dependabot.yml index de85a14f..5cb3aeab 100644 --- a/.github/workflows/merge-dependabot.yml +++ b/.github/workflows/merge-dependabot.yml @@ -37,6 +37,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/on-pr-closed.yml b/.github/workflows/on-pr-closed.yml index 0f04ff5b..7b5a6e7f 100644 --- a/.github/workflows/on-pr-closed.yml +++ b/.github/workflows/on-pr-closed.yml @@ -10,6 +10,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 85e65139..9b437911 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -22,8 +22,10 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" + - name: "Info" uses: actions/github-script@v7.0.1 with: @@ -38,6 +40,7 @@ jobs: # runs-on: [self-hosted, linux] # steps: # - name: "Initialise Workspace" +# if: startsWith(runner.name, 'buildagent-') # shell: bash # run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" # - name: "Checkout Source" @@ -59,6 +62,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -87,6 +91,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -218,6 +223,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -260,6 +266,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -294,6 +301,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -328,6 +336,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -363,6 +372,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -409,6 +419,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -445,6 +456,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/pr-update.yml b/.github/workflows/pr-update.yml index a9b7744d..2555b917 100644 --- a/.github/workflows/pr-update.yml +++ b/.github/workflows/pr-update.yml @@ -21,6 +21,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -61,6 +62,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" @@ -97,6 +99,7 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4b3b81cf..a8636d0c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -27,8 +27,10 @@ jobs: runs-on: [self-hosted, linux] steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" + - name: "Info" uses: actions/github-script@v7.0.1 with: @@ -47,6 +49,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/reformat-sql.yml b/.github/workflows/reformat-sql.yml index 199b58df..9e752186 100644 --- a/.github/workflows/reformat-sql.yml +++ b/.github/workflows/reformat-sql.yml @@ -29,6 +29,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/reformat-yaml.yml b/.github/workflows/reformat-yaml.yml index c34d5936..984abfbc 100644 --- a/.github/workflows/reformat-yaml.yml +++ b/.github/workflows/reformat-yaml.yml @@ -30,6 +30,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE" diff --git a/.github/workflows/update-labels.yml b/.github/workflows/update-labels.yml index 84a0b1b1..bb99c941 100644 --- a/.github/workflows/update-labels.yml +++ b/.github/workflows/update-labels.yml @@ -19,6 +19,7 @@ jobs: steps: - name: "Initialise Workspace" + if: startsWith(runner.name, 'buildagent-') shell: bash run: sudo chown -R "$USER:$USER" "$GITHUB_WORKSPACE"