From 25b6bbbb3c44abce05d5fc2afafa478a92f8aee7 Mon Sep 17 00:00:00 2001 From: Vignesh Edithal Date: Fri, 31 Jan 2025 12:19:55 -0800 Subject: [PATCH] Use github app for develop to amd-staging sync * Use the token for rocprofiler-compute-runner github app to perform auth to bypass amd-staging branch protection --- .github/workflows/daily-staging-sync.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily-staging-sync.yml b/.github/workflows/daily-staging-sync.yml index 372e588d04..708428f32c 100644 --- a/.github/workflows/daily-staging-sync.yml +++ b/.github/workflows/daily-staging-sync.yml @@ -10,15 +10,21 @@ jobs: runs-on: ubuntu-latest name: Promote Develop to Staging steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.ROCPROFILER_COMPUTE_RUNNER_APP_APP_ID }} + private-key: ${{ secrets.ROCPROFILER_COMPUTE_RUNNER_APP_PRIVATE_KEY }} + - name: Checkout uses: actions/checkout@v4 with: ref: develop fetch-depth: '0' + token: ${{ steps.generate-token.outputs.token }} - name: Merge - Fast Forward Only - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git checkout amd-staging git merge origin/develop --ff-only