Files
TheRock/.github/workflows/bump_submodules.yml
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

90 lines
2.9 KiB
YAML

# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
name: Bump Submodule automation
on:
workflow_dispatch:
inputs:
submodule:
description: 'Submodule to bump (default: all)'
required: false
default: 'all'
type: choice
options:
- all
- rocm-systems
- rocm-libraries
- rocgdb
schedule:
- cron: "0 */12 * * *" # Runs every 12 hrs at 12AM and 12PM
push:
branches:
- main
paths:
- rocm-systems
- rocm-libraries
- debug-tools/rocgdb/source
permissions:
contents: read
jobs:
bump-submodules:
runs-on: ubuntu-24.04
steps:
- name: Checkout ROCm/TheRock
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: '3.11'
- name: Generate GitHub App token rocm-systems
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: systems-token
with:
app-id: ${{ secrets.ROCM_SYSTEMS_APP_ID }}
private-key: ${{ secrets.ROCM_SYSTEMS_APP_PRIVATE_KEY }}
owner: "ROCm"
# We will reuse the rocm-systems token for rocgdb for now.
repositories: "rocm-systems,rocgdb,TheRock"
- name: Generate GitHub App token rocm-libraries
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: librarian-token
with:
app-id: ${{ secrets.ROCM_LIBRARIES_APP_ID }}
private-key: ${{ secrets.ROCM_LIBRARIES_APP_PRIVATE_KEY }}
owner: "ROCm"
repositories: "rocm-libraries,TheRock"
- name: Install prerequisites
run: |
pip install requests
- name: Run scheduled bump automation
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
run: |
python3 build_tools/github_actions/bump_automation.py \
--event_type "schedule" \
--submodule "${{ github.event.inputs.submodule || 'all' }}" \
--systems_token "${{ steps.systems-token.outputs.token }}" \
--libraries_token "${{ steps.librarian-token.outputs.token }}" \
--rocgdb_token "${{ steps.systems-token.outputs.token }}"
- name: Run push automation
if: github.event_name == 'push'
run: |
python3 build_tools/github_actions/bump_automation.py \
--event_type "push" \
--before "${{ github.event.before }}" \
--after "${{ github.sha }}" \
--systems_token "${{ steps.systems-token.outputs.token }}" \
--libraries_token "${{ steps.librarian-token.outputs.token }}" \
--rocgdb_token "${{ steps.systems-token.outputs.token }}"