From 11c9259043fa70cd5a4933773b1ebbb0302bf8e5 Mon Sep 17 00:00:00 2001 From: "Elwazir, Ammar" Date: Wed, 8 Jan 2025 09:50:04 -0600 Subject: [PATCH] Update Github Workflows (#2) * Update sync-mainline.yaml * Update sync-staging.yaml * Update formatting.yml --- .github/workflows/formatting.yml | 30 ---------------------------- .github/workflows/sync-mainline.yaml | 7 +++---- .github/workflows/sync-staging.yaml | 7 +++---- 3 files changed, 6 insertions(+), 38 deletions(-) diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml index 7fca0a0777..c8030700b3 100644 --- a/.github/workflows/formatting.yml +++ b/.github/workflows/formatting.yml @@ -46,16 +46,6 @@ jobs: exit 1 fi - - name: Create pull request - if: failure() - uses: peter-evans/create-pull-request@v5 - with: - commit-message: "cmake formatting (cmake-format)" - branch: ${{ steps.extract_branch.outputs.branch }}-cmake-format - delete-branch: true - title: "Format cmake code (via cmake-format) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} - source: runs-on: ubuntu-22.04 @@ -88,16 +78,6 @@ jobs: exit 1 fi - - name: Create pull request - if: failure() - uses: peter-evans/create-pull-request@v5 - with: - commit-message: "source formatting (clang-format v11)" - branch: ${{ steps.extract_branch.outputs.branch }}-clang-format - delete-branch: true - title: "Format source code (via clang-format v11) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} - python: runs-on: ubuntu-22.04 strategy: @@ -134,13 +114,3 @@ jobs: git diff exit 1 fi - - - name: Create pull request - if: failure() - uses: peter-evans/create-pull-request@v5 - with: - commit-message: "python formatting (black)" - branch: ${{ steps.extract_branch.outputs.branch }}-python-format - delete-branch: true - title: "Format python code (via black) on ${{ steps.extract_branch.outputs.branch }}" - base: ${{ steps.extract_branch.outputs.branch }} diff --git a/.github/workflows/sync-mainline.yaml b/.github/workflows/sync-mainline.yaml index b4a7297d85..33c4315c02 100644 --- a/.github/workflows/sync-mainline.yaml +++ b/.github/workflows/sync-mainline.yaml @@ -9,10 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - name: git-sync - uses: wei/git-sync@v3 + uses: AMD-ROCm-Internal/rocprofiler-github-actions@git-sync-v3 with: - source_repo: "git@github.com:ROCm/rocprofiler-register-internal.git" + source_repo: "https://${{ secrets.TOKEN }}@github.com/AMD-ROCm-Internal/rocprofiler-register-internal.git" source_branch: "amd-mainline" - destination_repo: "git@github.com:ROCm/rocprofiler-register.git" + destination_repo: "https://${{ secrets.EXT_TOKEN }}@github.com/ROCm/rocprofiler-register.git" destination_branch: "amd-mainline" - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} diff --git a/.github/workflows/sync-staging.yaml b/.github/workflows/sync-staging.yaml index 2896b9db49..2e3ce6dd1b 100644 --- a/.github/workflows/sync-staging.yaml +++ b/.github/workflows/sync-staging.yaml @@ -9,10 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - name: git-sync - uses: wei/git-sync@v3 + uses: AMD-ROCm-Internal/rocprofiler-github-actions@git-sync-v3 with: - source_repo: "git@github.com:ROCm/rocprofiler-register-internal.git" + source_repo: "https://${{ secrets.TOKEN }}@github.com/AMD-ROCm-Internal/rocprofiler-register-internal.git" source_branch: "amd-staging" - destination_repo: "git@github.com:ROCm/rocprofiler-register.git" + destination_repo: "https://${{ secrets.EXT_TOKEN }}@github.com/ROCm/rocprofiler-register.git" destination_branch: "amd-staging" - ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}