forked from github/update-project-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
54 lines (54 loc) · 2.17 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update project
description: Updates an item's fields on a GitHub Projects (beta) board based on a workflow dispatch (or other) event's input.
inputs:
organization:
description: The organization that contains the project, defaults to the current repository owner
required: false
default: ${{ github.repository_owner }}
project_number:
description: The project number from the project's URL
required: true
operation:
description: Operation type (update or read)
default: update
required: false
content_id:
description: The global ID of the issue or pull request within the project
required: true
field:
description: The field on the project to set the value of
required: true
value:
description: The value to set the project field to. Only required for operation type read
required: false
github_token:
description: A GitHub Token with access to both the source issue and the destination project (`repo` and `write:org` scopes)
required: true
outputs:
project_id:
description: "The global ID of the project"
value: ${{ steps.parse_project_metadata.outputs.project_id }}
item_id:
description: "The global ID of the issue or pull request"
value: ${{ steps.parse_project_metadata.outputs.item_id }}
item_title:
description: "The title of the issue or pull request"
value: ${{ steps.parse_project_metadata.outputs.item_title }}
field_id:
description: "The global ID of the field"
value: ${{ steps.parse_project_metadata.outputs.field_id }}
field_read_value:
description: "The value of the field before the update"
value: ${{ steps.parse_content_metadata.outputs.item_value }}
field_updated_value:
description: "The value of the field after the update"
value: ${{ steps.output_values.outputs.field_updated_value }}
field_type:
description: "The updated field's ProjectV2FieldType (text, single_select, number, date, or iteration)"
value: ${{ steps.parse_project_metadata.outputs.field_type }}
option_id:
description: "The global ID of the selected option"
value: ${{ steps.parse_project_metadata.outputs.option_id }}
runs:
using: 'node16'
main: 'dist/index.js'