Skip to content

Commit cbaff53

Browse files
authored
cj(general): add Validate Own Project Fields job (#426)
* cj(general): add Validate Own Project Fields job * Update validate-own-project-fields.yml * Update validate-own-project-fields.yml
1 parent 5b800c0 commit cbaff53

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Validate Own Project Fields
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
id-token: write
15+
repository-projects: write
16+
17+
jobs:
18+
validate-own-fields:
19+
uses: ./.github/workflows/validate-project-fields.yml
20+
secrets: inherit

.github/workflows/validate-project-fields.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Validate Project Fields
22

33
on:
4+
workflow_call:
5+
inputs:
6+
project_number:
7+
description: "Project number to validate"
8+
required: false
9+
type: string
10+
default: "102"
411
pull_request:
512
types:
613
- opened
@@ -27,7 +34,7 @@ jobs:
2734
GITHUB_PROJECTS_PAT: ${{ secrets.PROJECTS_PAT }}
2835
GITHUB_REPOSITORY: "${{ github.repository }}"
2936
GITHUB_EVENT_NUMBER: "${{ github.event.number || '0' }}"
30-
PROJECT_NUMBER: 102
37+
PROJECT_NUMBER: ${{ inputs.project_number || '102' }}
3138
steps:
3239
- name: Fetch Validation Script
3340
uses: actions/checkout@v4

0 commit comments

Comments
 (0)