Skip to content

Commit 9a5bea8

Browse files
Add flag to proposal validation workflow to enable testing
1 parent 51d3caa commit 9a5bea8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/proposal_validation.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
type: string
88
description: "Name of project supported by swift-evolution-metadata-extractor tool"
99
default: swift
10+
workflow_test_enabled:
11+
type: boolean
12+
description: "Flag to test this workflow within the github-workflows repository"
13+
default: false
1014

1115
jobs:
1216
run-swift-evolution-metadata-extractor:
@@ -15,6 +19,8 @@ jobs:
1519
container:
1620
image: "swift:6.2-noble"
1721
timeout-minutes: 10
22+
env:
23+
RESOLVED_PR_NUMBER: ${{ case(inputs.workflow_test_enabled, '3331', github.event.number) }}
1824
steps:
1925
- name: Checkout swiftlang/swift-evolution-metadata-extractor (main)
2026
uses: actions/checkout@v6
@@ -51,4 +57,4 @@ jobs:
5157
key: ${{ steps.cache-key.outputs.key }}
5258

5359
- name: Validate proposals
54-
run: $GITHUB_WORKSPACE/swift-evolution-metadata-extractor validate --pull-request ${{ github.event.number }}
60+
run: $GITHUB_WORKSPACE/swift-evolution-metadata-extractor validate --pull-request $RESOLVED_PR_NUMBER

0 commit comments

Comments
 (0)