Updates for new default branch (#537)

* Update contributing guide for new default branch

Signed-off-by: coleramos425 <colramos@amd.com>

* Add develop target to related workflows

Signed-off-by: coleramos425 <colramos@amd.com>

* Auto sync develop and staging

Signed-off-by: coleramos425 <colramos@amd.com>

* Run sync every night at 12AM

Signed-off-by: coleramos425 <colramos@amd.com>

* Rename sync workflow

Signed-off-by: coleramos425 <colramos@amd.com>

* Update maintainers guide

Signed-off-by: coleramos425 <colramos@amd.com>

* Update readme

Signed-off-by: coleramos425 <colramos@amd.com>

* Auto accept PRs for daily branch sync

Signed-off-by: coleramos425 <colramos@amd.com>

* Direct merge. No PR for merge required

Signed-off-by: coleramos425 <colramos@amd.com>

---------

Signed-off-by: coleramos425 <colramos@amd.com>
Этот коммит содержится в:
Cole Ramos
2025-01-28 16:40:41 -06:00
коммит произвёл GitHub
родитель f58070aff1
Коммит 0a52e6f19d
8 изменённых файлов: 38 добавлений и 40 удалений
+25
Просмотреть файл
@@ -0,0 +1,25 @@
name: Sync Staging with Develop
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
promote-dev-to-stg:
if: github.repository == 'ROCm/rocprofiler-compute'
runs-on: ubuntu-latest
name: Promote Develop to Staging
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: develop
fetch-depth: '0'
- name: Merge - Fast Forward Only
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout amd-staging
git merge origin/develop --ff-only
git push origin HEAD
+2 -2
Просмотреть файл
@@ -3,9 +3,9 @@ name: Formatting
on:
push:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
pull_request:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
+2 -2
Просмотреть файл
@@ -5,9 +5,9 @@ name: RHEL 8
# Controls when the workflow will run
on:
push:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
pull_request:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
+2 -2
Просмотреть файл
@@ -4,9 +4,9 @@ name: Ubuntu 22.04
on:
push:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
pull_request:
branches: [ amd-mainline, amd-staging, release/** ]
branches: [ amd-mainline, amd-staging, release/**, develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
-27
Просмотреть файл
@@ -1,27 +0,0 @@
name: Sync Mainline with Staging
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * sun
jobs:
promote-stg-to-main:
if: github.repository == 'ROCm/rocprofiler-compute'
runs-on: ubuntu-latest
name: Promote Staging to Mainline
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: amd-mainline
fetch-depth: '0'
- name: Merge - Fast Forward Only
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git checkout amd-mainline
git checkout -b promote-staging-$(date +%F)
git merge --ff-only origin/amd-staging
git push -u origin HEAD
gh pr create --base amd-mainline --title "Promote \`amd-staging\` to \`amd-mainline\`" --fill --label "automerge"