Skip to content

Commit a1e4801

Browse files
committed
Allow skipping proposing PR
1 parent 09b2443 commit a1e4801

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/overcloud-host-image-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
options:
1919
- SMS Lab
2020
- Leafcloud
21+
create_skc_pr:
22+
description: Propose PR to SKC
23+
type: boolean
24+
default: true
2125
secrets:
2226
KAYOBE_VAULT_PASSWORD:
2327
required: true
@@ -402,10 +406,12 @@ jobs:
402406
env:
403407
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
404408
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
409+
if: inputs.create_skc_pr
405410

406411
- name: Display link to update overcloud host image tags workflows
407412
run: |
408413
echo "::notice Overcloud host image promote workflow: https://github.com/stackhpc/stackhpc-kayobe-config/actions/workflows/update-overcloud-host-image-tags.yml"
414+
if: inputs.create_skc_pr
409415

410416
- name: Send message to Slack via Workflow Builder
411417
uses: slackapi/[email protected]
@@ -427,4 +433,4 @@ jobs:
427433
MESSAGE: "SKC overcloud host image build failed :sob:"
428434
RESULTS_URL: "N/A"
429435
WORKFLOW_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
430-
if: failure()
436+
if: failure() && inputs.create_skc_pr

0 commit comments

Comments
 (0)