Skip to content

Commit fc7c68d

Browse files
chore(ci): require manual pyproject sync policy acknowledgement in release sync workflow (#127)
Signed-off-by: Snomaan6846 <syedali@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED Co-authored-by: Snomaan6846 <syedali@redhat.com>
1 parent cfb8f0b commit fc7c68d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/prow-merge-release-to-staging.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@ name: Prow Merge release-* Branch to rhoai-staging Branch
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
confirm_pyproject_sync_policy:
7+
description: |
8+
Developer Note: release-* -> rhoai-staging auto-sync does not auto-propagate all pyproject.toml updates as-is.
9+
If pyproject.toml or runtimes/*/pyproject.toml changes are needed in rhoai-staging, open a separate manual sync PR.
10+
After manual pyproject sync, regenerate lock files with `make lock`.
11+
12+
Acknowledgement: I understand and will manually sync pyproject.toml changes when needed.
13+
required: false
14+
type: boolean
15+
default: false
516

617
# Prevent concurrent sync runs for the same source branch.
718
# We queue instead of canceling to avoid losing a manually-triggered run.
@@ -21,6 +32,12 @@ jobs:
2132
runs-on: ubuntu-latest
2233
timeout-minutes: 20
2334
steps:
35+
- name: Validate manual pyproject sync acknowledgement
36+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_pyproject_sync_policy != 'true' }}
37+
run: |
38+
echo "Please acknowledge pyproject.toml manual sync policy before running this workflow."
39+
exit 1
40+
2441
- name: Checkout repository
2542
# Pinned from actions/checkout v6
2643
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

0 commit comments

Comments
 (0)