From d1c7fa4e3f9d7def3d6fb07a6fdb3c0d0654862d Mon Sep 17 00:00:00 2001 From: Joseph Macaranas Date: Mon, 7 Apr 2025 17:31:55 -0400 Subject: [PATCH] Adding PAT to the update action --- .github/CODEOWNERS | 5 ++++- .github/workflows/update-subtrees.yml | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 08878cfeaf7f..9c445c1ce10e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,10 +1,11 @@ +* @ROCm/rocm-devops /amd-smi/* @marifamd @bill-shuzhou-liu @dmitrii-galantsev @charis-poag-amd @oliveiradan /rdc/* @dmitrii-galantsev @bill-shuzhou-liu /rocm_smi_lib/* @bill-shuzhou-liu @dmitrii-galantsev @charis-poag-amd @oliveiradan /rocprofiler/* @ammarwa @bgopesh /rocprofiler-compute/* @coleramos425 @feizheng10 @vedithal-amd @xuchen-amd @cfallows-amd @ywang103-amd /rocprofiler-sdk/* @jrmadsen @t-tye -/rocprofiler-systems/* @ROCm/rocprof-sys @jrmadsen +/rocprofiler-systems/* @ROCm/rocprof-sys @jrmadsen /ROCR-Runtime/* @kentrussell @fxkamd @dayatsin-amd /roctracer/* @ammarwa @bgopesh @@ -23,6 +24,8 @@ /rocprofiler-sdk/source/lib/rocprofiler-sdk-tool @SrirakshaNag /rocprofiler-sdk/source/lib/rocprofiler-sdk-codeobj @ApoKalipse-V +*/.azuredevops/ @ROCm/external-ci + # Documentation files */docs/* @ROCm/rocm-documentation */*.md @ROCm/rocm-documentation diff --git a/.github/workflows/update-subtrees.yml b/.github/workflows/update-subtrees.yml index a1ca82c2c3db..620520ae6ba1 100644 --- a/.github/workflows/update-subtrees.yml +++ b/.github/workflows/update-subtrees.yml @@ -17,15 +17,15 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 # needed for git subtree pull/push - + token: ${{ secrets.MONOREPO_BOT_TOKEN }} - name: Set up Git user run: | git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com" - - name: Update Repositories in the EMU Monorepo - run: | - has_errors=false + - name: Update Repositories in the EMU Monorepo + run: | + has_errors=false for repo in $(cat .github/repos-config.json | jq -r '.repositories[].name'); do url=$(cat .github/repos-config.json | jq -r ".repositories[] | select(.name == \"$repo\") | .url") branch=$(cat .github/repos-config.json | jq -r ".repositories[] | select(.name == \"$repo\") | .branch")