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
Tá an tiomantas seo le fáil i:
Vignesh Edithal
2025-01-31 12:19:55 -08:00
tiomanta ag vedithal-amd
tuismitheoir 95b600ea58
tiomantas 25b6bbbb3c
+8 -2
Féach ar an gComhad
@@ -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