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
This commit is contained in:
committed by
vedithal-amd
parent
95b600ea58
commit
25b6bbbb3c
@@ -10,15 +10,21 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Promote Develop to Staging
|
name: Promote Develop to Staging
|
||||||
steps:
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: develop
|
ref: develop
|
||||||
fetch-depth: '0'
|
fetch-depth: '0'
|
||||||
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
|
||||||
- name: Merge - Fast Forward Only
|
- name: Merge - Fast Forward Only
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
git checkout amd-staging
|
git checkout amd-staging
|
||||||
git merge origin/develop --ff-only
|
git merge origin/develop --ff-only
|
||||||
|
|||||||
Reference in New Issue
Block a user