Dosyalar
rocm-systems/.github/workflows/weekly-mainline-sync.yml
T
David Galiffi 043aa81baf Update weekly-mainline-sync.yml
Restrict job to the ROCm/rocprofiler-systems repository. 
No need to run on forks.
2024-11-18 10:46:29 -05:00

28 satır
810 B
YAML

name: Sync Mainline with Staging
on:
workflow_dispatch:
schedule:
- cron: 0 5 * * sun
jobs:
promote-stg-to-main:
if: github.repository == 'ROCm/rocprofiler-systems'
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"